ghc-7.10.1: The GHC API

Safe HaskellNone
LanguageHaskell2010

CmdLineParser

Description

Command-line parser

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

(c) The University of Glasgow 2005

Synopsis

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

data GhcFlagMode Source

GHC flag modes describing when a flag has an effect.

Constructors

OnlyGhc

The flag only affects the non-interactive GHC

OnlyGhci

The flag only affects the interactive GHC

AllModes

The flag affects multiple ghc modes

HiddenFlag

This flag should not be seen in cli completion

newtype CmdLineP s a Source

Constructors

CmdLineP 

Fields

runCmdLine :: s -> (a, s)
 

data Flag m Source

Constructors

Flag 

data EwM m a Source

Instances

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

runEwM :: EwM m a -> m (Errs, Warns, a) Source

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

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

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

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