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
{{ message }}
This repository has been archived by the owner on Oct 16, 2022. It is now read-only.
In my init code, I wanted to use RIO's runSimpleApp for some code that needs a logging environment, before I've built my application context - creating a sql connection pool wants a MonadLogger instance - and RIO doesn't export any function to write to console without a logger. But, I can't do that because there is an overlapping instance:
• Overlapping instances for HasLogFunc SimpleApp
arising from a use of ‘createPostgresqlPool’
Matching instances:
instance Has ModLogger α => HasLogFunc α
-- Defined in ‘Magicbane.Logging’
instance HasLogFunc SimpleApp -- Defined in ‘RIO.Prelude.Simple’
The text was updated successfully, but these errors were encountered:
In my init code, I wanted to use RIO's
runSimpleApp
for some code that needs a logging environment, before I've built my application context - creating a sql connection pool wants a MonadLogger instance - and RIO doesn't export any function to write to console without a logger. But, I can't do that because there is an overlapping instance:The text was updated successfully, but these errors were encountered: