hasql/library/Hasql/Decoders.hs

73 lines
930 B
Haskell
Raw Normal View History

2022-06-20 13:54:54 +03:00
-- |
-- A DSL for declaration of result decoders.
2015-12-05 09:09:31 +03:00
module Hasql.Decoders
2022-06-20 13:54:54 +03:00
( -- * Result
Result,
noResult,
rowsAffected,
singleRow,
-- ** Specialized multi-row results
rowMaybe,
rowVector,
rowList,
-- ** Multi-row traversers
foldlRows,
foldrRows,
-- * Row
Row,
column,
-- * Nullability
NullableOrNot,
nonNullable,
nullable,
-- * Value
Value,
bool,
int2,
int4,
int8,
float4,
float8,
numeric,
char,
text,
bytea,
date,
timestamp,
timestamptz,
time,
timetz,
interval,
uuid,
inet,
json,
jsonBytes,
jsonb,
jsonbBytes,
array,
listArray,
vectorArray,
composite,
hstore,
enum,
custom,
refine,
-- * Array
Array,
dimension,
element,
-- * Composite
Composite,
field,
)
2015-11-08 21:09:42 +03:00
where
2019-05-21 01:20:57 +03:00
import Hasql.Private.Decoders