License | GPL-3.0-or-later |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
Copyright: Oleg Grenrus
Synopsis
- data FieldDescrs s a
- fieldDescrLookup :: CabalParsing m => FieldDescrs s a -> FieldName -> (forall f. m f -> (f -> Doc) -> r) -> Maybe r
- coerceFieldDescrs :: FieldDescrs s a -> FieldDescrs () ()
- singletonF :: FieldName -> (f -> Doc) -> (forall m. CabalParsing m => m f) -> FieldDescrs s a
Documentation
data FieldDescrs s a Source #
A collection field parsers and pretty-printers.
Instances
fieldDescrLookup :: CabalParsing m => FieldDescrs s a -> FieldName -> (forall f. m f -> (f -> Doc) -> r) -> Maybe r Source #
Lookup both pretty-printer and value parser.
As the value of the field is unknown, we have to work with it universally.
coerceFieldDescrs :: FieldDescrs s a -> FieldDescrs () () Source #
singletonF :: FieldName -> (f -> Doc) -> (forall m. CabalParsing m => m f) -> FieldDescrs s a Source #