Copyright | (c) Edward Kmett 2011-2015 |
---|---|
License | BSD3 |
Maintainer | ekmett@gmail.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Results and Parse Errors
- data Result a
- class AsResult s t a b | s -> a, t -> b, s b -> t, t a -> s where
- _Success :: AsResult s t a b => Prism s t a b
- _Failure :: AsResult s s a a => Prism' s ErrInfo
- data Err = Err {
- _reason :: Maybe Doc
- _footnotes :: [Doc]
- _expected :: Set String
- _finalDeltas :: [Delta]
- class HasErr c where
- class Errable m where
- data ErrInfo = ErrInfo {
- _errDoc :: Doc
- _errDeltas :: [Delta]
- explain :: Rendering -> Err -> Doc
- failed :: String -> Err
Parse Results
The result of parsing. Either we succeeded or something went wrong.
Parsing Errors
This is used to report an error. What went wrong, some supplemental docs and a set of things expected at the current location. This does not, however, include the actual location.
ErrInfo | |
|