arith-encode: A practical arithmetic encoding (aka Godel numbering) library.

[ bsd3, data, library, serialization, test, testing ] [ Propose Tags ]

A library providing tools and various schemes for encoding arbitrary datatypes as natural numbers. The underlying theory is that of isomorphisms with the natural numbers (known as Godel numbering). The library provides functionality for defining multiple such encodings for a given datatype, as well as a collection of stock encodings and combinators which can be used to build more complex encodings.

This has various uses, among them binary serialization/deserialization and enumeration testing.

This is the first release candidate for 1.0 (the initial release).

Versions [faq] 0.6.0, 0.7.0, 1.0.0
Dependencies arithmoi, array, base (>=4.4.0 && <5), Cabal (>=1.16.0), containers, fgl, hashable, unordered-containers [details]
License BSD-3-Clause
Copyright Copyright (c) 2014 Eric McCorkle. All rights reserved.
Author Eric McCorkle
Maintainer Eric McCorkle <>
Category Testing, Test, Serialization, Data
Home page
Bug tracker
Source repo head: git clone
Uploaded by emc2 at Fri Sep 12 13:26:32 UTC 2014
Distributions NixOS:1.0.0
Downloads 1622 total (62 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]




Maintainer's Corner

For package maintainers and hackage trustees