Data types for large but fixed width signed and unsigned integers https://github.com/erikd/wide-word

Latest on Hackage:

See all snapshots wide-word appears in

BSD-2-Clause licensed by Erik de Castro Lopo
Maintained by erikd@mega-nerd.com

Module documentation for

This version can be pinned in stack with:wide-word-,2784

A library to provide data types for large (ie > 64 bits) but fixed width signed and unsigned integers with the usual typeclass instances to allow them to be used interchangeably with Word64.

The types and operations are coded to be as fast as possible using strictness annotations, INLINEABLE pragmas and unboxed values and operations where appropriate.


Revision history for wide-word – 2019-01-31

  • Improve implementation of succ/pred.
  • Add tests for typeclass laws.
  • Add Prim instances for Int128 and Word128.
  • Fix/re-instate rewite rules. – 2018-11-16

  • Switch to Hedgehog for testing. – 2017-04-05

  • Make it build with ghc 8.2. – 2017-02-08

  • Add NFData instances for Word128 and Int128. – 2017-01-29

  • Int128: Fix flakey rewrite rules. – 2017-01-06

  • First version. Released on an unsuspecting world.