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?
Removing fundeps would make type inference almost impossible, impairing normal usage of the library.
Treating a ByteString as a sequence of characters would be encouraging bad practices. If this was really necessary, forcing the usage of a newtype wrapper would be a good thing.
I do not intend to include any orphan instances for base in classy-prelude.
Maybe dependencies not necessary in classes such as
class CanPack c i | c -> i
andclass CanSingleton c i | c -> i
? So it would be possible to also defineinstance CanPack ByteString Char
together with already definedinstance CanPack ByteString Word8
. And what about adding numerical instances forChar
likeNum
,Real
andIntegral
so it would behave exactly likeWord8
?