ghc-7.0.1: The GHC API

CmdLineParser

Documentation

data OptKind m Source

Constructors

NoArg (EwM m ()) 
HasArg (String -> EwM m ()) 
SepArg (String -> EwM m ()) 
Prefix (String -> EwM m ()) 
OptPrefix (String -> EwM m ()) 
OptIntSuffix (Maybe Int -> EwM m ()) 
IntSuffix (Int -> EwM m ()) 
PassFlag (String -> EwM m ()) 
AnySuffix (String -> EwM m ()) 
PrefixPred (String -> Bool) (String -> EwM m ()) 
AnySuffixPred (String -> Bool) (String -> EwM m ()) 

newtype CmdLineP s a Source

Constructors

CmdLineP 

Fields

runCmdLine :: s -> (a, s)
 

Instances

data Flag m Source

Constructors

Flag 

data EwM m a Source

Instances

Monad m => Monad (EwM m) 

addErr :: Monad m => String -> EwM m ()Source

addWarn :: Monad m => String -> EwM m ()Source

liftEwM :: Monad m => m a -> EwM m aSource