Safe Haskell | None |
---|---|

Language | Haskell2010 |

For internal use only.

# Documentation

`Left`

bitstreams interpret an octet as a vector of bits whose
LSB comes first and MSB comes last e.g.

- 11110000 => [False, False, False, False, True, True , True , True]
- 10010100 => [False, False, True , False, True, False, False, True]

`Bits`

operations (like `toBits`

) treat a `Left`

bitstream as a
little-endian integer.

`Right`

bitstreams interpret an octet as a vector of bits whose
MSB comes first and LSB comes last e.g.

- 11110000 => [True, True , True , True, False, False, False, False]
- 10010100 => [True, False, False, True, False, True , False, False]

`Bits`

operations (like `toBits`

) treat a `Right`

bitstream as a
big-endian integer.