-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenumeration.cabal
58 lines (55 loc) · 2.69 KB
/
enumeration.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Name: enumeration
Category: Data, Serialization, Test, Testing
Version: 0.2.0
License: BSD3
License-File: LICENSE
Author: Eric McCorkle
Maintainer: Eric McCorkle <[email protected]>
Stability: Beta
Synopsis: A practical API for building recursive enumeration
procedures and enumerating datatypes.
Homepage: https://github.com/emc2/enumeration
Bug-Reports: https://github.com/emc2/enumeration/issues
Copyright: Copyright (c) 2014 Eric McCorkle. All rights reserved.
Description:
A library providing tools for building enumeration procedures for recursively-
enumerable datatypes. This is built atop the arith-encode library, and makes
use of the natural number isomorphisms it provides to represent individual
decisions in the enumeration procedure. As such, each enumeration result is
denoted by a unique path, consisting of a sequence of natural numbers. An
enumeration procedure is simply a (partial) mapping between sequences
and a given datatype.
.
The library provides functionality for constructing enumeration procedures,
as well as facilities for performing enumeration according to various search
strategies (depth-first, breadth-first, etc). These procedures can also be
"warm-started" using a path or a set of paths. Obvious applications include
exhaustive search, testing, automated proving, and others.
.
Additionally, as a path is simply a sequence of natural numbers, an
enumeration procedure can double as a binary serializer/deserializer. For
well-behaved enumeration procedures (ie. those where the mapping is an
isomorphism), the resulting binary format should be very nearly succinct.
Build-type: Simple
Cabal-version: >= 1.16
Source-Repository head
Type: git
Location: [email protected]:emc2/enumeration.git
Test-Suite UnitTest
default-language: Haskell2010
type: exitcode-stdio-1.0
Main-Is: UnitTest.hs
hs-source-dirs: src test
build-depends: base >= 4.4.0 && < 5, Cabal >= 1.16.0, HUnit-Plus, arith-encode,
containers, binary, arithmoi, heap
ghc-options: -fhpc
Library
default-language: Haskell2010
hs-source-dirs: src
build-depends: base >= 4.4.0 && < 5, Cabal >= 1.16.0, containers, arith-encode,
binary, arithmoi, heap
exposed-modules: Data.Enumeration
Data.Enumeration.Binary
Data.Enumeration.Traversal
other-modules:
Data.Enumeration.Traversal.Class