Safe Haskell | None |
---|---|
Language | Haskell2010 |
Helps to map enum types to postgresql enums.
- derivePgEnum :: InflectorFunc -> Name -> DecsQ
- type InflectorFunc = String -> String
Documentation
:: InflectorFunc | mapping function from haskell constructor name to PG enum label |
-> Name | type to derive instances for |
-> DecsQ |
type InflectorFunc = String -> String Source #
Function to transform constructor name into its PG enum conterpart.