Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- makeBoomerangs :: Name -> Q [Dec]
- derivePrinterParsers :: Name -> Q [Dec]
Documentation
makeBoomerangs :: Name -> Q [Dec] Source #
Make a Boomerang
router for each constructor in a datatype. For
example:
$(makeBoomerangs ''Sitemap)
Backwards-compatibility
derivePrinterParsers :: Name -> Q [Dec] Source #
Deprecated: Use makeBoomerangs instead
Old name for makeBoomerangs
, since renamed to reflect the fact
that it's not actually deriving instances for any type class, but rather
generates top-level definitions for routers of type Boomerang
.