Cabal-2.2.0.0: A framework for packaging Haskell software

CopyrightJose Iborra 2008
LicenseBSD3
Maintainercabal-devel@haskell.org
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Distribution.ReadE

Contents

Description

Simple parsing with failure

Synopsis

ReadE

newtype ReadE a Source #

Parser with simple error reporting

Constructors

ReadE 

Fields

Instances
Functor ReadE Source # 
Instance details

Methods

fmap :: (a -> b) -> ReadE a -> ReadE b Source #

(<$) :: a -> ReadE b -> ReadE a Source #

failReadE :: ErrorMsg -> ReadE a Source #

Projections

readP_to_E :: (String -> ErrorMsg) -> ReadP a a -> ReadE a Source #

parsecToReadE :: (String -> ErrorMsg) -> ParsecParser a -> ReadE a Source #