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

Henning Thielemann lemming at
Fri May 17 13:28:40 CEST 2013

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.

More information about the Libraries mailing list