| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Text.XML.ParentAttributes
Documentation
class ToXmlParentAttributes a where #
Minimal complete definition
Methods
toXmlParentAttributes :: a -> [(Name, Text)] #
Instances
| ToXmlParentAttributes a # | A catch-all instance: by default objects don't have parent attributes.
The alternative solution is to write a default implementation in the class,
but it has a drawback that it requires numerous (boilerplate) empty
instances - one for each type that doesn't have parent attributes (most
types). This overlappable instance gets overriden for XML records
(described in Data.THGen.XML) because they can store parent attributes
added via the |
Defined in Text.XML.ParentAttributes Methods toXmlParentAttributes :: a -> [(Name, Text)] # | |
class ToXmlAttribute a where #
Minimal complete definition
Methods
toXmlAttribute :: a -> Text #
Instances
| ToXmlAttribute Int # | |
Defined in Text.XML.ParentAttributes Methods toXmlAttribute :: Int -> Text # | |
| ToXmlAttribute Integer # | |
Defined in Text.XML.ParentAttributes Methods toXmlAttribute :: Integer -> Text # | |
| ToXmlAttribute Natural # | |
Defined in Text.XML.ParentAttributes Methods toXmlAttribute :: Natural -> Text # | |
| ToXmlAttribute Word # | |
Defined in Text.XML.ParentAttributes Methods toXmlAttribute :: Word -> Text # | |
| ToXmlAttribute Text # | |
Defined in Text.XML.ParentAttributes Methods toXmlAttribute :: Text -> Text # | |
toXmlAttributeIntegral :: Integral a => a -> Text #