Copyright | (c) Bjorn Bringert 2003-2005 |
---|---|
License | BSD-style |
Maintainer | bjorn@bringert.net |
Stability | experimental |
Portability | non-portable (requires extensions and non-portable libraries) |
Safe Haskell | None |
Language | Haskell2010 |
Uses Template Haskell to automagically derive instances of XmlRpcType
- asXmlRpcStruct :: Name -> Q [Dec]
Documentation
asXmlRpcStruct :: Name -> Q [Dec] Source
Creates an XmlRpcType
instance which handles a Haskell record
as an XmlRpc struct. Example:
data Person = Person { name :: String, age :: Int }
$(asXmlRpcStruct ''Person)