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.

Versions [faq] 0.6.0, 0.7.0, 1.0.0, 1.0.1, 1.0.2
Dependencies array, base (>=4.9 && <5), binary, containers, hashable, integer-logarithms, integer-roots, unordered-containers [details]
License BSD-3-Clause
Copyright Copyright (c) 2014 Eric McCorkle. All rights reserved.
Author Eric McCorkle
Maintainer Eric McCorkle <>, Andrew Lelechenko <>
Category Data, Serialization, Test, Testing
Home page
Bug tracker
Source repo head: git clone
Uploaded by Bodigrim at 2020-02-09T11:39:04Z
Distributions NixOS:1.0.2
Downloads 3482 total (226 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2020-02-09 [all 1 reports]


[Index] [Quick Jump]


Maintainer's Corner

For package maintainers and hackage trustees