Cabal-1.20.0.3: A framework for packaging Haskell software

CopyrightJose Iborra 2008
LicenseBSD3
Maintainercabal-devel@haskell.org
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell98

Distribution.ReadE

Contents

Description

Simple parsing with failure

Synopsis

ReadE

newtype ReadE a

Parser with simple error reporting

Constructors

ReadE 

Fields

runReadE :: String -> Either ErrorMsg a
 

Instances

succeedReadE :: (String -> a) -> ReadE a

failReadE :: ErrorMsg -> ReadE a

Projections

parseReadE :: ReadE a -> ReadP r a

readEOrFail :: ReadE a -> String -> a

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