postgresql-types-0.1.2: Precise PostgreSQL types representation and driver-agnostic codecs
Safe HaskellNone
LanguageHaskell2010

PostgresqlTypes.Int2

Synopsis

Documentation

newtype Int2 Source #

PostgreSQL int2 type. 2-byte signed integer.

Range: -32768 to +32767.

PostgreSQL docs.

Constructors

Int2 Int16 

Instances

Instances details
Arbitrary Int2 Source # 
Instance details

Defined in PostgresqlTypes.Int2

Methods

arbitrary :: Gen Int2 #

shrink :: Int2 -> [Int2] #

IsString Int2 Source # 
Instance details

Defined in PostgresqlTypes.Int2

Methods

fromString :: String -> Int2 #

Read Int2 Source # 
Instance details

Defined in PostgresqlTypes.Int2

Show Int2 Source # 
Instance details

Defined in PostgresqlTypes.Int2

Methods

showsPrec :: Int -> Int2 -> ShowS #

show :: Int2 -> String #

showList :: [Int2] -> ShowS #

Eq Int2 Source # 
Instance details

Defined in PostgresqlTypes.Int2

Methods

(==) :: Int2 -> Int2 -> Bool #

(/=) :: Int2 -> Int2 -> Bool #

Ord Int2 Source # 
Instance details

Defined in PostgresqlTypes.Int2

Methods

compare :: Int2 -> Int2 -> Ordering #

(<) :: Int2 -> Int2 -> Bool #

(<=) :: Int2 -> Int2 -> Bool #

(>) :: Int2 -> Int2 -> Bool #

(>=) :: Int2 -> Int2 -> Bool #

max :: Int2 -> Int2 -> Int2 #

min :: Int2 -> Int2 -> Int2 #

Hashable Int2 Source # 
Instance details

Defined in PostgresqlTypes.Int2

Methods

hashWithSalt :: Int -> Int2 -> Int #

hash :: Int2 -> Int #

IsScalar Int2 Source # 
Instance details

Defined in PostgresqlTypes.Int2

Accessors

toInt16 :: Int2 -> Int16 Source #

Extract the underlying Int16 value.

Constructors

fromInt16 :: Int16 -> Int2 Source #

Construct a PostgreSQL Int2 from an Int16 value.