Safe Haskell | None |
---|---|
Language | Haskell98 |
Documentation
gxpickle :: forall a. (Generic a, GXmlPickler (Rep a), ConNames (Rep a)) => PU a Source #
The generic pickler. Uses a tag for each constructor with the
lower case constructor name, and a tag for each record field with
the lower case field name. Most values are pickled using their own
XmlPickler
instance, and String
s are pickled as possibly empty
text nodes.
class GXmlPickler f where Source #
The generic XmlPickler class. This gives generic xml picklers for
the functors from Regular
. These are usually not used
directly.
Instances
GXmlPickler (U1 :: Type -> Type) Source # | |
GXmlPickler (K1 i Text :: Type -> Type) Source # | |
GXmlPickler (K1 i String :: Type -> Type) Source # | |
XmlPickler a => GXmlPickler (K1 i a :: Type -> Type) Source # | |
(GXmlPickler f, GXmlPickler g) => GXmlPickler (f :+: g) Source # | |
(GXmlPickler f, GXmlPickler g) => GXmlPickler (f :*: g) Source # | |
GXmlPickler f => GXmlPickler (M1 D c f) Source # | |
(Constructor c, GXmlPickler f) => GXmlPickler (M1 C c f) Source # | |
Selector c => GXmlPickler (M1 S c (K1 i (Maybe Text) :: Type -> Type)) Source # | |
Selector c => GXmlPickler (M1 S c (K1 i (Maybe String) :: Type -> Type)) Source # | |
(XmlPickler a, Selector c) => GXmlPickler (M1 S c (K1 i (Maybe a) :: Type -> Type)) Source # | |
(Selector c, GXmlPickler f) => GXmlPickler (M1 S c f) Source # | |
formatElement :: String -> String Source #
Orphan instances
XmlPickler Bool Source # | |
(XmlPickler a, XmlPickler b) => XmlPickler (Either a b) Source # | |