Copyright | © 2019 Vincent Archambault |
---|---|
License | 0BSD |
Maintainer | Vincent Archambault <archambault.v@gmail.com> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
The module Data.SExpresso.Parse re-exports the functions and datatypes of this module.
Documentation
The Location
datatype represents a source span
The Located
datatype adds a source span to the type a
located :: MonadParsec e s m => m a -> m (Located a) Source #
The located
function adds a source span to a parser.
startPosPretty :: Location -> String Source #
Pretty prints S1
of a
object with Span
S1 _sourcePosPretty
endPosPretty :: Location -> String Source #
Pretty prints S2
of a
object with Span
_ S2sourcePosPretty