bool8: Alternative Bool type stored as byte

[ bsd3, foreign, library ] [ Propose Tags ]

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.

Versions 0.0, 0.0.1,
Dependencies base (>=3 && <5) [details]
License BSD-3-Clause
Author Henning Thielemann
Category Foreign
Source repo this: darcs get --tag
head: darcs get
Uploaded by HenningThielemann at Tue Oct 17 09:13:05 UTC 2017
Distributions NixOS:
Downloads 566 total (15 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-10-17 [all 1 reports]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees