Skip to content

riz0id/prim-bool

Repository files navigation

prim-bool: unboxed booleans

GHC 9.2.4

prim-bool packages an unboxed representation of booleans Bool#. Bool# is an Int# wrapper intended to replace pattern matching on 0# or 1# literals (as is done in ghc-prim) with the safer pattern synonyms False# and True# in primitive boolean functions.

Acknowledgements

Credit to @Icelandjack for the definition of Bool#.

About

Package providing primitive operations on unboxed booleans.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors