hasql-0.20: An efficient native PostgreSQL driver
Hasql.EncodePrimitive
data EncodePrimitive primitive Source #
Instances
Methods
contramap :: (a -> b) -> EncodePrimitive b -> EncodePrimitive a #
(>$) :: b -> EncodePrimitive b -> EncodePrimitive a #
int2 :: EncodePrimitive Int16 Source #
int4 :: EncodePrimitive Int32 Source #
int8 :: EncodePrimitive Int64 Source #
text :: EncodePrimitive Text Source #
date :: EncodePrimitive Day Source #
time :: EncodePrimitive TimeOfDay Source #
timetz :: EncodePrimitive (TimeOfDay, TimeZone) Source #
timestamp :: EncodePrimitive LocalTime Source #
timestamptz :: EncodePrimitive UTCTime Source #
interval :: EncodePrimitive DiffTime Source #