Skip to content
This repository has been archived by the owner on Oct 16, 2022. It is now read-only.

Overlapping instances for HasLogFunc SimpleApp #21

Closed
jeremyjh opened this issue Sep 15, 2018 · 3 comments
Closed

Overlapping instances for HasLogFunc SimpleApp #21

jeremyjh opened this issue Sep 15, 2018 · 3 comments

Comments

@jeremyjh
Copy link

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’
@akhra
Copy link
Contributor

akhra commented Sep 16, 2018

I think this is the same as #15, which is fixed on GitHub, but may never have made it to hackage?

@jeremyjh
Copy link
Author

Thanks, master does indeed solve this. @myfreeweb any chance of a hackage release soon?

@valpackett
Copy link
Owner

released 0.4.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants