packages feed

servant-db-postgresql 0.2.0.1 → 0.2.1.0

raw patch · 3 files changed

+7/−2 lines, 3 files

Files

CHANGELOG.md view
@@ -1,3 +1,8 @@+0.2.1.0+=======++* Make instance `FromRow => FromRow (Maybe a)` overlappable.+ 0.2.0.1 ======= 
servant-db-postgresql.cabal view
@@ -1,5 +1,5 @@ name:                 servant-db-postgresql-version:              0.2.0.1+version:              0.2.1.0 synopsis:             Derive a postgres client to database API specified by servant-db -- description: license:              BSD3
src/Servant/DB/PostgreSQL/HasDB.hs view
@@ -300,7 +300,7 @@ nullRow :: RowParser Null nullRow = field -instance FromRow a => FromRow (Maybe a) where+instance {-# OVERLAPPABLE #-} FromRow a => FromRow (Maybe a) where   fromRow = do     n <- numFieldsRemaining     (replicateM_ n nullRow *> pure Nothing) <|> (Just <$> fromRow)