Copyright | Jose Iborra 2008 |
---|---|
License | BSD3 |
Maintainer | cabal-devel@haskell.org |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Simple parsing with failure
Synopsis
- newtype ReadE a = ReadE {}
- succeedReadE :: (String -> a) -> ReadE a
- failReadE :: ErrorMsg -> ReadE a
- parsecToReadE :: (String -> ErrorMsg) -> ParsecParser a -> ReadE a
- parsecToReadEErr :: (ParseError -> ErrorMsg) -> ParsecParser a -> ReadE a
- unexpectMsgString :: ParseError -> String
ReadE
Parser with simple error reporting
succeedReadE :: (String -> a) -> ReadE a Source #
Projections
parsecToReadE :: (String -> ErrorMsg) -> ParsecParser a -> ReadE a Source #
parsecToReadEErr :: (ParseError -> ErrorMsg) -> ParsecParser a -> ReadE a Source #
Parse Errors
unexpectMsgString :: ParseError -> String Source #