snoyberg / classy-prelude

A typeclass-based Prelude.
108 stars 15 forks source link

Functional dependencies of some classes #55

Closed sw1sh closed 11 years ago

sw1sh commented 11 years ago

Maybe dependencies not necessary in classes such as class CanPack c i | c -> i and class CanSingleton c i | c -> i? So it would be possible to also define instance CanPack ByteString Char together with already defined instance CanPack ByteString Word8. And what about adding numerical instances for Char like Num, Real and Integral so it would behave exactly like Word8?

snoyberg commented 11 years ago