Safe Haskell | None |
---|---|
Language | Haskell98 |
Documentation
derivePathInfo' :: (String -> String) -> Name -> Q [Dec] Source #
use Template Haskell to create PathInfo
instances for a type.
This variant allows the user to supply a function that transforms
the constructor name to a prettier rendering. It is important that
the transformation function generates a unique output for each
input. For example, simply converting the string to all lower case
is not acceptable, because then FooBar
and Foobar
would be
indistinguishable.
$(derivePathInfo' standard ''SiteURL)
see also: standard