-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Generic generation of HXT XmlPickler instances using Regular. -- -- Generic generation of HXT XmlPickler instances using Regular. @package regular-xmlpickler @version 0.1 -- | Generic XmlPickler. Use this module if you don't want the instances -- from Generics.Regular.XmlPickler.Instances. module Generics.Regular.XmlPickler.Function -- | 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 Strings are pickled as possibly -- empty text nodes. gxpickle :: (Regular a, GXmlPickler (PF a)) => PU a -- | The generic XmlPickler class. This gives generic xml picklers for the -- functors from Generics.Regular. These are usually not used directly. class GXmlPickler f gxpicklef :: (GXmlPickler f) => PU a -> PU (f a) instance (Selector s, GXmlPickler f) => GXmlPickler (S s f) instance (Constructor c, GXmlPickler f) => GXmlPickler (C c f) instance (GXmlPickler f, GXmlPickler g) => GXmlPickler (f :*: g) instance (GXmlPickler f, GXmlPickler g) => GXmlPickler (f :+: g) instance GXmlPickler U instance (XmlPickler a) => GXmlPickler (K a) instance GXmlPickler I -- | XmlPickler instance for Bool which converts to and from -- the Strings "true" and "false", and GXmlPickler instance for -- K String, which allows whitespace. These instances are -- automatically used if you import Generics.Regular.XmlPickler. module Generics.Regular.XmlPickler.Instances instance GXmlPickler (K String) instance XmlPickler Bool -- | Generic XmlPickler. This module allows you to generically convert your -- datatype to and from XML. If you don't want the (G)XmlPickler -- instances for Bool and String, use -- Generic.Regular.XmlPickler.Function instead. module Generics.Regular.XmlPickler -- | 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 Strings are pickled as possibly -- empty text nodes. gxpickle :: (Regular a, GXmlPickler (PF a)) => PU a -- | The generic XmlPickler class. This gives generic xml picklers for the -- functors from Generics.Regular. These are usually not used directly. class GXmlPickler f gxpicklef :: (GXmlPickler f) => PU a -> PU (f a)