-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Servant support for the XML Content-Type -- -- Servant support for the Content-Type of application/xml. -- Anything with ToXml and FromXml instances can be -- automatically marshalled. @package servant-xml @version 1.0.2 -- | Servant support for XML. -- -- Types with a ToXml instance will be automatically marshalled -- into XML and successfully returned by Servant endpoints. Types with a -- FromXml instance can be decoded from request bodies. -- -- In implementing these typeclass instances, you can use the primitives -- found in the xmlbf library. module Servant.XML -- | The application/xml Content-Type. To be used in Servant -- endpoints like: -- --
--   data Foo = ...
--   
--   instance ToXml Foo where
--     toXml foo = ...
--   
--   type API = ...
--     :<|> "foo" :> Get '[XML] Foo
--     :<|> "foo" :> "update" :> ReqBody '[XML] Foo :> PostAccepted '[JSON] ()
--   
data XML instance Servant.API.ContentTypes.Accept Servant.XML.XML instance Xmlbf.ToXml a => Servant.API.ContentTypes.MimeRender Servant.XML.XML a instance Xmlbf.FromXml a => Servant.API.ContentTypes.MimeUnrender Servant.XML.XML a