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
Implementation uses label internally and since it requires HKD structure f as input I'm using it as label (mempty :: HKD Foo (Const ())). Now, any attempt to make it for any structure fails since required constraint (Monoid tuple, Generic xs, Tuple f xs tuple) => Monoid (HKD xs f) can't be expressed without Tuple class that's not exported.
Something-something internals something (if they could be exposed).
Aah, absolutely! I think Tuple is probably actually useful enough to be exported through the front door, rather than the back door for internals. I'll expose it now, and try to figure out what is left that could come through an internals module :)
This is now hopefully fixed in master, and I'll push to Hackage shortly :) Can't guarantee I'll have too much time this week for sorting out an internals module, but I'll do my best!
I keep doing strange things. Consider something like this:
Implementation uses
label
internally and since it requiresHKD structure f
as input I'm using it aslabel (mempty :: HKD Foo (Const ()))
. Now, any attempt to make it for any structure fails since required constraint(Monoid tuple, Generic xs, Tuple f xs tuple) => Monoid (HKD xs f)
can't be expressed withoutTuple
class that's not exported.Something-something internals something (if they could be exposed).
https://stackoverflow.com/questions/9190638/how-why-and-when-to-use-the-internal-modules-pattern
The text was updated successfully, but these errors were encountered: