wide-word

Data types for large but fixed width signed and unsigned integers

https://github.com/erikd/wide-word

Version on this page:0.1.6.0@rev:1
LTS Haskell 22.29:0.1.6.0@rev:2
Stackage Nightly 2024-07-20:0.1.6.0@rev:2
Latest on Hackage:0.1.6.0@rev:2

See all snapshots wide-word appears in

BSD-2-Clause licensed by Erik de Castro Lopo
Maintained by [email protected]
This version can be pinned in stack with:wide-word-0.1.6.0@sha256:47cd8c832c6af8c9f49c15a40d434068351346b3de878672a32ea0caa7ba7983,3521
Used by 4 packages in nightly-2024-06-14(full list with versions):

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.

Changes

Revision history for wide-word

0.1.6.0 – 2023-10-24

  • Fixes for shifting/rotating by negative values.

0.1.5.0 – 2023-01-14

  • Add Binary instances for Int128, Word128 and Word256.

0.1.4.0 – 2022-12-24

  • Add support for building on 32 bit architectures with ghc-9.2 or later.

0.1.3.0 – 2022-12-01

  • Add Hashable instances for Int128, Word128, and Word256.

0.1.2.0 – 2022-??-??

  • Add Hashable instances for Int128, Word128, and Word256.

0.1.1.2 – 2020-12-26

  • Derive Generic for Int128, Word128 and Word256.
  • Fix Bits.isSigned instance for Int128.

0.1.1.1 – 2020-03-22

  • Make sizeOf and alignment methods of Word256 Prim and Storable instances agree.

0.1.1.0 – 2019-11-22

  • Add Word256.

0.1.0.9 – 2019-02-06

  • Fix Prim instance for Int128

0.1.0.8 – 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.

0.1.0.7 – 2018-11-16

  • Switch to Hedgehog for testing.

0.1.0.3 – 2017-04-05

  • Make it build with ghc 8.2.

0.1.0.2 – 2017-02-08

  • Add NFData instances for Word128 and Int128.

0.1.0.1 – 2017-01-29

  • Int128: Fix flakey rewrite rules.

0.1.0.0 – 2017-01-06

  • First version. Released on an unsuspecting world.