Cabal-1.4.0.1: A framework for packaging Haskell softwareSource codeContentsIndex
Distribution.ReadE
Portabilityportable
Stabilityalpha
MaintainerIsaac Jones <ijones@syntaxpolice.org>
Contents
ReadE
Projections
Description
Simple parsing with failure
Synopsis
newtype ReadE a = ReadE {
runReadE :: String -> Either ErrorMsg a
}
succeedReadE :: (String -> a) -> ReadE a
failReadE :: ErrorMsg -> ReadE a
parseReadE :: ReadE a -> ReadP r a
readEOrFail :: ReadE a -> String -> a
readP_to_E :: (String -> ErrorMsg) -> ReadP a a -> ReadE a
ReadE
newtype ReadE a Source
Parser with simple error reporting
Constructors
ReadE
runReadE :: String -> Either ErrorMsg a
show/hide Instances
succeedReadE :: (String -> a) -> ReadE aSource
failReadE :: ErrorMsg -> ReadE aSource
Projections
parseReadE :: ReadE a -> ReadP r aSource
readEOrFail :: ReadE a -> String -> aSource
readP_to_E :: (String -> ErrorMsg) -> ReadP a a -> ReadE aSource
Produced by Haddock version 2.3.0