Copyright | (c) Jonathan Merritt 2017 |
---|---|
License | BSD3 |
Maintainer | j.s.merritt@gmail.com |
Stability | Experimental |
Portability | POSIX |
Safe Haskell | Safe |
Language | Haskell2010 |
- data OptionsElement n a = OptionsElement {
- optConstructorElemName :: Text -> n
- optSelectorElemName :: Text -> n
- optAttrName :: Text -> a
- optReadNodeOrdering :: ReadNodeOrdering
- optReadLeftovers :: ReadLeftovers
- data ReadNodeOrdering
- data ReadLeftovers
- symt :: KnownSymbol s => Proxy s -> Text
Documentation
data OptionsElement n a Source #
Options for generating ToElem
and FromElem
instances using GHC
Generics.
Type parameters:
n
- Type for an element name.a
- Type for an attribute name.
OptionsElement | |
|
data ReadNodeOrdering Source #
Specifies how child nodes should be treated when reading a type from an element.
data ReadLeftovers Source #
Specifies how any left-over parts of an element should be treated when reading a type from an element.
LeftoversOK | Left-over parts of an element are OK, and not an error. |
LeftoversError | Left-over parts of an element should produce an error. |