| Stability | experimental |
|---|---|
| Maintainer | fuuzetsu@fuuzetsu.co.uk |
| Safe Haskell | None |
HBooru.Parsers.GenericBooru.TH
Description
| Helper module for HBooru.Parsers.GenericBooru due to Template Haskell limitation of being unable to splice inside of the same module of definitions.
Documentation
makePost :: Name -> Q [Dec]Source
A TH helper which makes an instance along with the data type using
makePost' and makePostInstance.
makePost' :: Name -> Q [Dec]Source
Template Haskell function which is able to generate GenericPost-alike
type declarations for cases where we want to use this format but need a
different data type. It can be used by using TemplateHaskell extension and
calling $(makePost ( at the top level. Hopefully
a temporary measure until the author thinks of a better way to provide
generic Gelbooru-like post parsing while casting out to different data types
that's OK to write.
mkName "YourTypeName"))