Safe Haskell | None |
---|---|
Language | Haskell2010 |
Distribution.FieldGrammar.FieldDescrs
Synopsis
- 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.
Instances
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)] #