Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data FieldDescrs s a
- fieldDescrPretty :: FieldDescrs s a -> String -> Maybe (s -> Doc)
- fieldDescrParse :: CabalParsing m => FieldDescrs s a -> String -> Maybe (s -> m s)
- fieldDescrsToList :: CabalParsing m => FieldDescrs s a -> [(String, s -> Doc, s -> m s)]
Documentation
data FieldDescrs s a #
A collection field parsers and pretty-printers.
FieldGrammar FieldDescrs # | Note: default values are printed. |
Functor (FieldDescrs s) # | |
Applicative (FieldDescrs s) # | |
fieldDescrPretty :: FieldDescrs s a -> String -> Maybe (s -> Doc) #
Lookup a field value pretty-printer.
fieldDescrParse :: CabalParsing m => FieldDescrs s a -> String -> Maybe (s -> m s) #
Lookup a field value parser.
fieldDescrsToList :: CabalParsing m => FieldDescrs s a -> [(String, s -> Doc, s -> m s)] #