Skip to content

Commit

Permalink
[fix] add proper MonadFail instance
Browse files Browse the repository at this point in the history
  • Loading branch information
MangoIV committed Oct 30, 2023
1 parent ae4a238 commit 11f8f6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions squeal-postgresql/src/Squeal/PostgreSQL/Session.hs
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ instance (Monad m, db0 ~ db1)
return = pure
(>>=) = flip pqBind

instance (Monad m, db0 ~ db1)
instance (MonadFail m, db0 ~ db1)
=> Fail.MonadFail (PQ db0 db1 m) where
fail = Fail.fail
fail = lift . Fail.fail

instance db0 ~ db1 => MFunctor (PQ db0 db1) where
hoist f (PQ pq) = PQ (f . pq)
Expand Down

0 comments on commit 11f8f6a

Please sign in to comment.