ghc-7.8.20140130: The GHC API

Safe HaskellNone
LanguageHaskell98

CmdLineParser

Description

Command-line parser

This is an abstract command-line parser used by both StaticFlags and DynFlags.

(c) The University of Glasgow 2005

Documentation

data OptKind mSource

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 ()) 
FloatSuffix (Float -> EwM m ()) 
PassFlag (String -> EwM m ()) 
AnySuffix (String -> EwM m ()) 
PrefixPred (String -> Bool) (String -> EwM m ()) 
AnySuffixPred (String -> Bool) (String -> EwM m ()) 
VersionSuffix (Int -> Int -> EwM m ()) 

newtype CmdLineP s aSource

Constructors

CmdLineP 

Fields

runCmdLine :: s -> (a, s)
 

data Flag mSource

Constructors

Flag 

data EwM m aSource

Instances

Monad m => Monad (EwM m) 
Monad m => Functor (EwM m) 
Monad m => Applicative (EwM m) 

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

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

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