1
Fork 0

update changelog, small haddock fixes

This commit is contained in:
Jake Wheat 2013-12-31 12:20:07 +02:00
parent 9e75fa9365
commit 9611885448
3 changed files with 20 additions and 5 deletions
Language/SQL/SimpleSQL

View file

@ -30,18 +30,20 @@ The public API functions.
> parseQueryExpr :: FilePath
> -- ^ filename to use in errors
> -> Maybe (Int,Int)
> -- ^ line number and column number to use in errors
> -- ^ line number and column number of the first character
> -- in the source (to use in errors)
> -> String
> -- ^ the SQL source to parse
> -> Either ParseError QueryExpr
> parseQueryExpr = wrapParse topLevelQueryExpr
> -- | Parses a list of query exprs, with semi colons between
> -- | Parses a list of query expressions, with semi colons between
> -- them. The final semicolon is optional.
> parseQueryExprs :: FilePath
> -- ^ filename to use in errors
> -> Maybe (Int,Int)
> -- ^ line number and column number to use in errors
> -- ^ line number and column number of the first character
> -- in the source (to use in errors)
> -> String
> -- ^ the SQL source to parse
> -> Either ParseError [QueryExpr]
@ -51,7 +53,8 @@ The public API functions.
> parseValueExpr :: FilePath
> -- ^ filename to use in errors
> -> Maybe (Int,Int)
> -- ^ line number and column number to use in errors
> -- ^ line number and column number of the first character
> -- in the source (to use in errors)
> -> String
> -- ^ the SQL source to parse
> -> Either ParseError ValueExpr
@ -476,6 +479,8 @@ unary prefix, unary postfix and binary infix operators. The operators
can be symbols (a + b), single keywords (a and b) or multiple keywords
(a is similar to b).
TODO: carefully review the precedences and associativities.
> opTable :: Bool -> [[E.Operator String () Identity ValueExpr]]
> opTable bExpr =
> [[binarySym "." E.AssocLeft]

View file

@ -8,6 +8,9 @@
> ,prettyQueryExprs
> ) where
TODO: there should be more comments in this file, especially the bits
which have been changed to try to improve the layout of the output.
> import Language.SQL.SimpleSQL.Syntax
> import Text.PrettyPrint (render, vcat, text, (<>), (<+>), empty, parens,
> nest, Doc, punctuate, comma, sep, quotes,