Hoogle Search
Within LTS Haskell 24.52 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
class (Eq a, Ord a, Enum a, Bounded a, PGRep a) =>
PGEnum apostgresql-typed Database.PostgreSQL.Typed.Enum A type based on a PostgreSQL enum. Automatically instantiated by dataPGEnum.
dataPGEnum :: String -> PGName -> (String -> String) -> DecsQpostgresql-typed Database.PostgreSQL.Typed.Enum Create a new enum type corresponding to the given PostgreSQL enum type. For example, if you have CREATE TYPE foo AS ENUM ('abc', 'DEF'), then dataPGEnum "Foo" "foo" ("Foo_"++) will be equivalent to:
data Foo = Foo_abc | Foo_DEF deriving (Eq, Ord, Enum, Bounded, Typeable) instance PGType "foo" where PGVal "foo" = Foo instance PGParameter "foo" Foo where ... instance PGColumn "foo" Foo where ... instance PGRep Foo where PGRepType = "foo" instance PGEnum Foo where pgEnumValues = [(Foo_abc, "abc"), (Foo_DEF, "DEF")]
Requires language extensions: TemplateHaskell, FlexibleInstances, MultiParamTypeClasses, DeriveDataTypeable, DataKinds, TypeFamiliespgEnumName :: PGEnum a => a -> PGNamepostgresql-typed Database.PostgreSQL.Typed.Enum The database name of a value.
pgEnumValue :: PGEnum a => PGName -> Maybe apostgresql-typed Database.PostgreSQL.Typed.Enum Lookup a value matching the given database name.
pgEnumValues :: PGEnum a => [(a, PGName)]postgresql-typed Database.PostgreSQL.Typed.Enum List of all the values in the enum along with their database names.
fdw_invalid_column_number :: ByteStringpostgresql-typed Database.PostgreSQL.Typed.ErrCodes FDW_INVALID_COLUMN_NUMBER: HV008 (Error)
non_numeric_sql_json_item :: ByteStringpostgresql-typed Database.PostgreSQL.Typed.ErrCodes NON_NUMERIC_SQL_JSON_ITEM: 22036 (Error)
sql_json_number_not_found :: ByteStringpostgresql-typed Database.PostgreSQL.Typed.ErrCodes SQL_JSON_NUMBER_NOT_FOUND: 2203B (Error)
unsafe_new_enum_value_usage :: ByteStringpostgresql-typed Database.PostgreSQL.Typed.ErrCodes UNSAFE_NEW_ENUM_VALUE_USAGE: 55P04 (Error)
pgColNumber :: PGColDescription -> !Int16postgresql-typed Database.PostgreSQL.Typed.Protocol No documentation available.