on dev help sign in
binary docs
b1b34c1Eitan Chatav
squeal-postgresql/src/Squeal/PostgreSQL/Binary.hs+2−3
@@ -5,12 +5,11 @@ Copyright: (c) Eitan Chatav, 2017
5Maintainer: eitan@morphism.tech
5Maintainer: eitan@morphism.tech
6Stability: experimental
6Stability: experimental
7
7
8−Binary encoding and decoding between Haskell and PostgreSQL types.
8+This module provides binary encoding and decoding between Haskell and PostgreSQL types.
9
9
10Instances are governed by the `Generic` and `HasDatatypeInfo` typeclasses, so you absolutely
10Instances are governed by the `Generic` and `HasDatatypeInfo` typeclasses, so you absolutely
11do not need to define your own instances to decode retrieved rows into Haskell values or
11do not need to define your own instances to decode retrieved rows into Haskell values or
12−to encode Haskell values into statement parameters. You only need to derive those type
12+to encode Haskell values into statement parameters.
13−classes.
14
13
15>>> import Data.Int (Int16)
14>>> import Data.Int (Int16)
16>>> import Data.Text (Text)
15>>> import Data.Text (Text)