This repository has been archived by the owner on Oct 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
"instance HasModLogger a => HasLogFunc a" overlaps on bare LogFunc #15
Comments
How is this happening? Where is the bare LogFunc coming from? Are you trying to use a bare LogFunc as the context? |
Yes, while trying to test some logging stuff in isolation. And I intended to mention (whoops) that it was trivially worked around by using |
Heh, what was surprising to me was using a bare LogFunc, since only tuples were intended / are mentioned in the readme :) |
Unfortunately there is no standard unary tuple. ;) |
Looks like the reason I couldn't find a nice constraint-based solution was because instead we got a nice compiler-based one! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I tried fixing this via
Data.Type.Equality
:But this doesn't work for reasons I haven't yet grasped. There's a procedural workaround described on Stack Overflow by @treeowl; I didn't immediately grok how to adapt it, and in any case it involves an additional class and newtype so I'd want your feedback on module style (per #12) before doing something like that.
The text was updated successfully, but these errors were encountered: