tidyups
This commit is contained in:
parent
b14af47773
commit
a001d120c1
5 changed files with 12 additions and 17 deletions
Language/SQL/SimpleSQL
|
@ -44,8 +44,8 @@ back into SQL source text. It attempts to format the output nicely.
|
|||
> sep [scalarExpr e0, text f, scalarExpr e1]
|
||||
|
||||
> scalarExpr (Case t ws els) =
|
||||
> sep [text "case" <+> (maybe empty scalarExpr t)
|
||||
> ,nest 4 (sep ((map w ws)
|
||||
> sep [text "case" <+> maybe empty scalarExpr t
|
||||
> ,nest 4 (sep (map w ws
|
||||
> ++ maybeToList (fmap e els)))
|
||||
> ,text "end"]
|
||||
> where
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue