Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data FieldDescrs s a
- fieldDescrPretty :: FieldDescrs s a -> FieldName -> Maybe (s -> Doc)
- fieldDescrParse :: CabalParsing m => FieldDescrs s a -> FieldName -> Maybe (s -> m s)
- fieldDescrsToList :: CabalParsing m => FieldDescrs s a -> [(FieldName, s -> Doc, s -> m s)]
Documentation
data FieldDescrs s a Source #
A collection of field parsers and pretty-printers.
Instances
Applicative (FieldDescrs s) Source # | |
Defined in Distribution.FieldGrammar.FieldDescrs pure :: a -> FieldDescrs s a Source # (<*>) :: FieldDescrs s (a -> b) -> FieldDescrs s a -> FieldDescrs s b Source # liftA2 :: (a -> b -> c) -> FieldDescrs s a -> FieldDescrs s b -> FieldDescrs s c Source # (*>) :: FieldDescrs s a -> FieldDescrs s b -> FieldDescrs s b Source # (<*) :: FieldDescrs s a -> FieldDescrs s b -> FieldDescrs s a Source # | |
Functor (FieldDescrs s) Source # | |
Defined in Distribution.FieldGrammar.FieldDescrs fmap :: (a -> b) -> FieldDescrs s a -> FieldDescrs s b Source # (<$) :: a -> FieldDescrs s b -> FieldDescrs s a Source # |
fieldDescrPretty :: FieldDescrs s a -> FieldName -> Maybe (s -> Doc) Source #
Lookup a field value pretty-printer.
fieldDescrParse :: CabalParsing m => FieldDescrs s a -> FieldName -> Maybe (s -> m s) Source #
Lookup a field value parser.
fieldDescrsToList :: CabalParsing m => FieldDescrs s a -> [(FieldName, s -> Doc, s -> m s)] Source #