Safe Haskell | None |
---|---|
Language | Haskell98 |
This module contains Dhall's parsing logic
Utilities
exprFromText :: Delta -> Text -> Either ParseError (Expr Src Path) Source #
Parse an expression from Text
containing a Dhall program
Parsers
exprA :: Show a => Parser a -> Parser (Expr Src a) Source #
Parser for a top-level Dhall expression. The expression is parameterized over any parseable type, allowing the language to be extended as needed.
Types
Source code extract
newtype ParseError Source #
A parsing error
A Parser
that is almost identical to
Text.Trifecta.
except treating Haskell-style
comments as whitespaceParser