Hello,
I'm trying to use SqlPersistT funcs with MonadError, but am
failing in writing the runDB correctly.
I tried several things, but always getting:
• Couldn't match type ‘IOException’ with ‘AppException’
arising from a functional dependency between:
constraint ‘MonadError AppException IO’ arising from a
use of ‘f1’
instance ‘MonadError IOException IO’ at <no location
info>
• In the second argument of ‘runPool’, namely ‘f1’
In the second argument of ‘($)’, namely ‘runPool pgConf f1
pgPool’
In a stmt of a 'do' block: liftIO $ runPool pgConf f1 pgPool
How to make it compile?
Best regards,
vlatko
Here is the minimal reproducible code: