Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type D a = ByteString -> Either Text a
- int :: (Integral a, Bits a) => D a
- float4 :: D Float
- float8 :: D Double
- numeric :: D Scientific
- char :: D Char
- text :: D Text
- bytea :: D ByteString
- date :: D Day
- time :: Bool -> D TimeOfDay
- timetz :: Bool -> D (TimeOfDay, TimeZone)
- timestamp :: Bool -> D LocalTime
- timestamptz :: Bool -> D UTCTime
- interval :: Bool -> D DiffTime
- bool :: D Bool
- uuid :: D UUID
- array :: D Data
Documentation
type D a = ByteString -> Either Text a Source
A function for decoding a byte string into a value.
Numbers
numeric :: D Scientific Source
Text
bytea :: D ByteString Source
Date and Time
time :: Bool -> D TimeOfDay Source
The decoding strategy depends on whether the server supports integer_datetimes
.
timetz :: Bool -> D (TimeOfDay, TimeZone) Source
The decoding strategy depends on whether the server supports integer_datetimes
.
timestamp :: Bool -> D LocalTime Source
The decoding strategy depends on whether the server supports integer_datetimes
.
timestamptz :: Bool -> D UTCTime Source
The decoding strategy depends on whether the server supports integer_datetimes
.
interval :: Bool -> D DiffTime Source
The decoding strategy depends on whether the server supports integer_datetimes
.