The compdata package

[Tags:benchmark, bsd3, library, test]

This library implements the ideas of Data types a la carte (Journal of Functional Programming, 18(4):423-436, 2008, as outlined in the paper Compositional data types (Workshop on Generic Programming, 83-94, 2011, The purpose of this library is to allow the programmer to construct data types -- as well as the functions defined on them -- in a modular fashion. The underlying idea is to separate the signature of a data type from the fixed point construction that produces its recursive structure. Signatures can then be composed and decomposed freely.

Building on that foundation, this library provides additional extensions and (run-time) optimisations which make compositional data types usable for practical implementations. In particular, it provides an excellent framework for manipulating and analysing abstract syntax trees in a type-safe manner. Thus, it is perfectly suited for programming language implementations, especially, in an environment consisting of a family of tightly interwoven domain-specific languages.

In concrete terms, this library provides the following features:

Examples of using (generalised) compositional data types are bundled with the package in the folder examples.

There are some supplementary packages, some of which were included in previous versions of this package:


Versions 0.1, 0.2, 0.3, 0.4, 0.4.1, 0.5, 0.5.1, 0.5.2, 0.5.3, 0.6, 0.6.1,,,,, 0.7,,, 0.8,,,,,, 0.9, 0.10, 0.10.1
Dependencies base (>=4.7 && <4.10), containers (<0.6), deepseq (>=1.1 && <1.5), derive (<2.6), mtl (>=2.2.1 && <2.3), QuickCheck (>=2 && <2.9), template-haskell (>=2.9 && <2.12), th-expand-syns (<0.5), transformers (<0.6), tree-view (<0.5) [details]
License BSD3
Author Patrick Bahr, Tom Hvitved
Stability Unknown
Category Generics
Bug tracker
Source repository head: git clone
Uploaded Mon May 30 09:38:18 UTC 2016 by PatrickBahr
Updated Sun Mar 19 20:17:49 UTC 2017 by HerbertValerioRiedel to revision 1
Distributions LTSHaskell:0.10.1, NixOS:0.10.1
Downloads 6246 total (152 in the last 30 days)
0 []
Status Docs available [build log]
Last success reported on 2016-05-30 [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees