Cabal-2.2.0.0: A framework for packaging Haskell software

Safe HaskellNone
LanguageHaskell2010

Distribution.FieldGrammar.FieldDescrs

Synopsis

Documentation

data FieldDescrs s a Source #

A collection field parsers and pretty-printers.

Instances
FieldGrammar FieldDescrs Source #

Note: default values are printed.

Instance details
Functor (FieldDescrs s) Source # 
Instance details

Methods

fmap :: (a -> b) -> FieldDescrs s a -> FieldDescrs s b #

(<$) :: a -> FieldDescrs s b -> FieldDescrs s a #

Applicative (FieldDescrs s) Source # 
Instance details

Methods

pure :: a -> FieldDescrs s a #

(<*>) :: FieldDescrs s (a -> b) -> FieldDescrs s a -> FieldDescrs s b #

liftA2 :: (a -> b -> c) -> FieldDescrs s a -> FieldDescrs s b -> FieldDescrs s c #

(*>) :: FieldDescrs s a -> FieldDescrs s b -> FieldDescrs s b #

(<*) :: FieldDescrs s a -> FieldDescrs s b -> FieldDescrs s a #

fieldDescrPretty :: FieldDescrs s a -> String -> Maybe (s -> Doc) Source #

Lookup a field value pretty-printer.

fieldDescrParse :: CabalParsing m => FieldDescrs s a -> String -> Maybe (s -> m s) Source #

Lookup a field value parser.

fieldDescrsToList :: CabalParsing m => FieldDescrs s a -> [(String, s -> Doc, s -> m s)] Source #