use ppShow in tool
This commit is contained in:
parent
913fce068b
commit
900d19f4c1
|
@ -13,6 +13,7 @@ indent: parse then pretty print sql
|
||||||
> import Data.Maybe
|
> import Data.Maybe
|
||||||
> import System.Exit
|
> import System.Exit
|
||||||
> import Data.List
|
> import Data.List
|
||||||
|
> import Text.Show.Pretty
|
||||||
|
|
||||||
> import Language.SQL.SimpleSQL.Pretty
|
> import Language.SQL.SimpleSQL.Pretty
|
||||||
> import Language.SQL.SimpleSQL.Parser
|
> import Language.SQL.SimpleSQL.Parser
|
||||||
|
@ -65,7 +66,7 @@ indent: parse then pretty print sql
|
||||||
> ,\args -> do
|
> ,\args -> do
|
||||||
> (f,src) <- getInput args
|
> (f,src) <- getInput args
|
||||||
> either (error . peFormattedError)
|
> either (error . peFormattedError)
|
||||||
> (putStrLn . prettyQueryExprs SQL2011)
|
> (putStrLn . ppShow)
|
||||||
> $ parseQueryExprs SQL2011 f Nothing src
|
> $ parseQueryExprs SQL2011 f Nothing src
|
||||||
> )
|
> )
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue