git.iko.soy/typeable/postgresql-simple
on master help sign in
Add jsonb to the haddocks of Value
commit9ef8f1475596cac8ab6a8e8e310cce6c1d5de183 authorMoritz Kiefer <moritz.kiefer@purelyfunctional.org> dateSat 2 Dec 2017, 18:08 (9 years ago) parent428131d
1 file changed+1−1
src/Database/PostgreSQL/Simple/FromField.hs+1−1
src/Database/PostgreSQL/Simple/FromField.hs+1−1
@@ -550,7 +550,7 @@ instance FromField UUID where
550550 Nothing -> returnError ConversionFailed f "Invalid UUID"
551551 Just uuid -> pure uuid
552552
553−-- | json
553+-- | json, jsonb
554554instance FromField JSON.Value where
555555 fromField f mbs = parse =<< fromFieldJSONByteString f mbs
556556 where parse bs = case parseOnly (JSON.value' <* endOfInput) bs of