You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now it seems that I can't do that since catch from base is fixed to IO. Using catch from unliftIO requires ConduitT to have an instance of MonadUnliftIO. After trying stuff for a while I just gave up.
My question would be "how do I log that bracketP failed using monad-logger"?
The text was updated successfully, but these errors were encountered:
I have the following function:
I would like to catch any exception that
connectPostgreSQL
throws and log it usingmonad-logger
, something like:Now it seems that I can't do that since
catch
from base is fixed toIO
. Usingcatch
fromunliftIO
requiresConduitT
to have an instance ofMonadUnliftIO
. After trying stuff for a while I just gave up.My question would be "how do I log that
bracketP
failed usingmonad-logger
"?The text was updated successfully, but these errors were encountered: