| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Database.PostgreSQL.Query.TH.Enum
Description
Helps to map enum types to postgresql enums.
Synopsis
- derivePgEnum :: InflectorFunc -> Name -> DecsQ
- type InflectorFunc = String -> String
Documentation
Arguments
| :: 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.