Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This is the module with the parser functions.
- parseQueryExpr :: FilePath -> Maybe (Int, Int) -> String -> Either ParseError QueryExpr
- parseValueExpr :: FilePath -> Maybe (Int, Int) -> String -> Either ParseError ValueExpr
- parseQueryExprs :: FilePath -> Maybe (Int, Int) -> String -> Either ParseError [QueryExpr]
- data ParseError = ParseError {
- peErrorString :: String
- peFilename :: FilePath
- pePosition :: (Int, Int)
- peFormattedError :: String
Documentation
:: FilePath | filename to use in errors |
-> Maybe (Int, Int) | 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 |
Parses a query expr, trailing semicolon optional.
:: FilePath | filename to use in errors |
-> Maybe (Int, Int) | 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 |
Parses a value expression.
:: FilePath | filename to use in errors |
-> Maybe (Int, Int) | 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] |
Parses a list of query expressions, with semi colons between them. The final semicolon is optional.
data ParseError Source
Type to represent parse errors.
ParseError | |
|