bool8: Alternative Bool type stored as byte

[ bsd3, foreign, library ] [ Propose Tags ] [ Report a vulnerability ]

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.

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.0, 0.0.1, 0.0.1.1
Dependencies base (>=3 && <5) [details]
Tested with ghc ==7.4.2, ghc ==7.6.3, ghc ==7.8.4, ghc ==7.10.3, ghc ==8.0.2, ghc ==8.2.2
License BSD-3-Clause
Author Henning Thielemann
Maintainer haskell@henning-thielemann.de
Category Foreign
Source repo this: darcs get http://hub.darcs.net/thielema/bool8 --tag 0.0.1.1
head: darcs get http://hub.darcs.net/thielema/bool8
Uploaded by HenningThielemann at 2017-10-17T09:13:05Z
Distributions NixOS:0.0.1.1
Reverse Dependencies 4 direct, 5 indirect [details]
Downloads 2692 total (16 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-10-17 [all 1 reports]