Cabal-1.18.1.4: A framework for packaging Haskell software

Portabilityportable
Maintainercabal-devel@haskell.org
Safe HaskellSafe-Inferred

Distribution.ReadE

Contents

Description

Simple parsing with failure

Synopsis

ReadE

newtype ReadE a Source

Parser with simple error reporting

Constructors

ReadE 

Fields

runReadE :: String -> Either ErrorMsg a
 

Instances

failReadE :: ErrorMsg -> ReadE aSource

Projections

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