Get the current source offset (in tokens)
Moduledhall-1.42.3Haskell2010
Dhall.Parser.Expression
Parsing Dhall expressions.
- 2 types
- 23 values
- Packagedhall-1.42.3
- Exports25
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceExpression.hs
Set the current source offset
Same as src, except also return the parsed value
Parse a complete expression (with leading and trailing whitespace)
This corresponds to the complete-expression rule from the official
grammar
For efficiency (and simplicity) we only expose two parsers from the result of the parsers function, since these are the only parsers needed outside of this module
Constructors
ParserscompleteExpression_ :: Parser (Expr Src a)importExpression_ :: Parser (Expr Src a)letBinding :: Parser (Binding Src a)
Parse a numeric TimeZone
This corresponds to the time-numoffset rule from the official grammar
Parse a numeric TimeZone or a Z
This corresponds to the time-offset rule from the official grammar
Parse a Time
This corresponds to the partial-time rule from the official grammar
Parse a Date
This corresponds to the full-date rule from the official grammar
Parse a "shebang" line (i.e. an initial line beginning with #!)
Given a parser for imports,
Parse an environment variable import
This corresponds to the env rule from the official grammar
Parse a local import without trailing whitespace
Parse a local import
This corresponds to the local rule from the official grammar
Parse an HTTP(S) import
This corresponds to the http rule from the official grammar
Parse a Missing import
This corresponds to the missing rule from the official grammar
Parse an ImportType
This corresponds to the import-type rule from the official grammar
Parse a SHA256Digest
This corresponds to the hash rule from the official grammar
Parse an ImportHashed
This corresponds to the import-hashed rule from the official grammar
Parse an Import
This corresponds to the import rule from the official grammar
ApplicationExprInfo distinguishes certain subtypes of application expressions.
Constructors
NakedMergeOrSomeOrToMapmerge x y,Some xortoMap x, unparenthesized.ImportExprAn import expression.
ApplicationExprAny other application expression.