Add `instance {Bits,FiniteBits} Bool`
authorHerbert Valerio Riedel <hvr@gnu.org>
Sun, 24 Nov 2013 12:14:16 +0000 (13:14 +0100)
committerHerbert Valerio Riedel <hvr@gnu.org>
Sun, 24 Nov 2013 12:19:19 +0000 (13:19 +0100)
commitd679f5e9b57935fb0c04ddccb85c69881212979a
tree674917a9f63f3f7e7e8578c36967a3f29e98873a
parentf3e5ad387c2e77bed36fc41b6319514fc38e59f2
Add `instance {Bits,FiniteBits} Bool`

This interprets `Bool` as an 1-bit "unsigned" bit-field and provides a
simple (not particularily optimized) implementation to that end.

See "Proposal: Add `instance Bits Bool`" by @ekmett, Nov 2013,

 http://permalink.gmane.org/gmane.comp.lang.haskell.libraries/20663

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Data/Bits.hs