@hackage bool80.0.1.1
Alternative Bool type stored as byte
Categories
License
BSD-3-Clause
Maintainer
haskell@henning-thielemann.de
Links
Versions
Installation
Tested Compilers
Dependencies (1)
Dependents (5)
@hackage/llvm-extra, @hackage/set-cover, @hackage/knead, @hackage/patch-image, @hackage/llvm-dsl
The standard Bool type has a Storable instance
that requires the size of HTYPE_INT,
i.e. usually four bytes or even more.
This package provides Bool8,
a boolean type with an 8 bit representation in memory.
It is not a drop-in replacement for Bool though.
You have to convert from or to Bool occasionally.
Starting with GHC-8.2/base-4.10 you also have Foreign.C.Types.CBool.