proposal/RFC: add bSwap to base in Data.Bits

Petr Pudlák petr.mvd at gmail.com
Fri May 17 15:40:20 CEST 2013


On 05/17/2013 01:28 PM, Henning Thielemann wrote:
>
> On Thu, 16 May 2013, Herbert Valerio Riedel wrote:
>
>> Wouldn't it be more logical to add a new typeclass depending on the
>> byte-notion such as e.g.
>>
>>  class Bits a => Bytes a where
>>    ...
>>
>> which could then provide byte-operations such as little/big endian
>> swaps?
>
> I would prefer that way.
+1, this solution seems more reasonable to me too.



More information about the Libraries mailing list