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.

  1. class (Eq a, Ord a, Enum a, Bounded a, PGRep a) => PGEnum a

    postgresql-typed Database.PostgreSQL.Typed.Enum

    A type based on a PostgreSQL enum. Automatically instantiated by dataPGEnum.

  2. dataPGEnum :: String -> PGName -> (String -> String) -> DecsQ

    postgresql-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, TypeFamilies

  3. pgEnumName :: PGEnum a => a -> PGName

    postgresql-typed Database.PostgreSQL.Typed.Enum

    The database name of a value.

  4. pgEnumValue :: PGEnum a => PGName -> Maybe a

    postgresql-typed Database.PostgreSQL.Typed.Enum

    Lookup a value matching the given database name.

  5. pgEnumValues :: PGEnum a => [(a, PGName)]

    postgresql-typed Database.PostgreSQL.Typed.Enum

    List of all the values in the enum along with their database names.

  6. fdw_invalid_column_number :: ByteString

    postgresql-typed Database.PostgreSQL.Typed.ErrCodes

    FDW_INVALID_COLUMN_NUMBER: HV008 (Error)

  7. non_numeric_sql_json_item :: ByteString

    postgresql-typed Database.PostgreSQL.Typed.ErrCodes

    NON_NUMERIC_SQL_JSON_ITEM: 22036 (Error)

  8. sql_json_number_not_found :: ByteString

    postgresql-typed Database.PostgreSQL.Typed.ErrCodes

    SQL_JSON_NUMBER_NOT_FOUND: 2203B (Error)

  9. unsafe_new_enum_value_usage :: ByteString

    postgresql-typed Database.PostgreSQL.Typed.ErrCodes

    UNSAFE_NEW_ENUM_VALUE_USAGE: 55P04 (Error)

  10. pgColNumber :: PGColDescription -> !Int16

    postgresql-typed Database.PostgreSQL.Typed.Protocol

    No documentation available.

Page 511 of many | Previous | Next