@@ -71,6 +71,7 @@ instance DBType Bool where
7171 { encode = Opaleye.ConstExpr . Opaleye.BoolLit
7272 , decode = Hasql.bool
7373 , typeName = "bool"
74+ , out = id
7475 }
7576
7677
@@ -79,6 +80,7 @@ instance DBType Char where
7980 { encode = Opaleye.ConstExpr . Opaleye.StringLit . pure
8081 , decode = Hasql.char
8182 , typeName = "char"
83+ , out = id
8284 }
8385
8486
@@ -87,6 +89,7 @@ instance DBType Int16 where
8789 { encode = Opaleye.ConstExpr . Opaleye.IntegerLit . toInteger
8890 , decode = Hasql.int2
8991 , typeName = "int2"
92+ , out = id
9093 }
9194
9295
@@ -95,6 +98,7 @@ instance DBType Int32 where
9598 { encode = Opaleye.ConstExpr . Opaleye.IntegerLit . toInteger
9699 , decode = Hasql.int4
97100 , typeName = "int4"
101+ , out = id
98102 }
99103
100104
@@ -103,6 +107,7 @@ instance DBType Int64 where
103107 { encode = Opaleye.ConstExpr . Opaleye.IntegerLit . toInteger
104108 , decode = Hasql.int8
105109 , typeName = "int8"
110+ , out = id
106111 }
107112
108113
@@ -111,6 +116,7 @@ instance DBType Float where
111116 { encode = Opaleye.ConstExpr . Opaleye.NumericLit . realToFrac
112117 , decode = Hasql.float4
113118 , typeName = "float4"
119+ , out = id
114120 }
115121
116122
@@ -119,6 +125,7 @@ instance DBType Double where
119125 { encode = Opaleye.ConstExpr . Opaleye.NumericLit . realToFrac
120126 , decode = Hasql.float8
121127 , typeName = "float8"
128+ , out = id
122129 }
123130
124131
@@ -127,6 +134,7 @@ instance DBType Scientific where
127134 { encode = Opaleye.ConstExpr . Opaleye.NumericLit
128135 , decode = Hasql.numeric
129136 , typeName = "numeric"
137+ , out = id
130138 }
131139
132140
@@ -137,6 +145,7 @@ instance DBType UTCTime where
137145 formatTime defaultTimeLocale "'%FT%T%QZ'"
138146 , decode = Hasql.timestamptz
139147 , typeName = "timestamptz"
148+ , out = id
140149 }
141150
142151
@@ -147,6 +156,7 @@ instance DBType Day where
147156 formatTime defaultTimeLocale "'%F'"
148157 , decode = Hasql.date
149158 , typeName = "date"
159+ , out = id
150160 }
151161
152162
@@ -157,6 +167,7 @@ instance DBType LocalTime where
157167 formatTime defaultTimeLocale "'%FT%T%Q'"
158168 , decode = Hasql.timestamp
159169 , typeName = "timestamp"
170+ , out = id
160171 }
161172
162173
@@ -167,6 +178,7 @@ instance DBType TimeOfDay where
167178 formatTime defaultTimeLocale "'%T%Q'"
168179 , decode = Hasql.time
169180 , typeName = "time"
181+ , out = id
170182 }
171183
172184
@@ -177,6 +189,7 @@ instance DBType DiffTime where
177189 formatTime defaultTimeLocale "'%-6Es'"
178190 , decode = Hasql.interval
179191 , typeName = "interval"
192+ , out = id
180193 }
181194
182195
@@ -190,6 +203,7 @@ instance DBType Text where
190203 { encode = Opaleye.ConstExpr . Opaleye.StringLit . Text.unpack
191204 , decode = Hasql.text
192205 , typeName = "text"
206+ , out = id
193207 }
194208
195209
@@ -215,6 +229,7 @@ instance DBType ByteString where
215229 { encode = Opaleye.ConstExpr . Opaleye.ByteStringLit
216230 , decode = Hasql.bytea
217231 , typeName = "bytea"
232+ , out = id
218233 }
219234
220235
@@ -229,6 +244,7 @@ instance DBType UUID where
229244 { encode = Opaleye.ConstExpr . Opaleye.StringLit . UUID.toString
230245 , decode = Hasql.uuid
231246 , typeName = "uuid"
247+ , out = id
232248 }
233249
234250
@@ -240,6 +256,7 @@ instance DBType Value where
240256 Lazy.unpack . Lazy.decodeUtf8 . Aeson.encode
241257 , decode = Hasql.jsonb
242258 , typeName = "jsonb"
259+ , out = id
243260 }
244261
245262