Difference between revisions of "Applications and libraries/Generic programming"

From HaskellWiki
Jump to navigation Jump to search
Line 21: Line 21:
 
</ul>
 
</ul>
   
At the moment we are discussing the advantages and disadvantages of the different approaches. Each approach is roughly two weeks under discussion and the results will be published in this Wiki Page. There is also a darcs repository where you can find some code that we are collecting. For retriving this code do:
+
At the moment we are discussing the advantages and disadvantages of the different approaches. Each approach is roughly two weeks under discussion and the results will be published in this Wiki Page. There is also a darcs repository where you can find some code that we are collecting. For retrieving this code do:
   
> darcs get http://darcs.haskell.org/generics
+
> darcs get http://darcs.haskell.org/generics (dead link, 12/2013, is this similar? http://darcs.haskell.org/ghc-generic-15Feb11/ )
   
 
The template that we are using to summarise the different approaches can be found [[/Template|here]].
 
The template that we are using to summarise the different approaches can be found [[/Template|here]].

Revision as of 07:06, 24 December 2013

The copyright status of this work is not known. Please help resolve this on the talk page.

Common library for generic programming

Johan Jeuring and Andres Loeh announced (in 2006) an initiative to design a common library for generic programming, which should work together with most of the Haskell compilers, and for which they hope to guarantee support for generics in Haskell into the future. If you want to get involved (or just want to see the discussion), you can subscribe to the generics mailing list (mostly idle since ~2010). Check the Haskell research wiki for some background on generics.

Work Plan

We have identified a number of approaches that are potential candidates to a generic programming library:

At the moment we are discussing the advantages and disadvantages of the different approaches. Each approach is roughly two weeks under discussion and the results will be published in this Wiki Page. There is also a darcs repository where you can find some code that we are collecting. For retrieving this code do:

> darcs get http://darcs.haskell.org/generics (dead link, 12/2013, is this similar? http://darcs.haskell.org/ghc-generic-15Feb11/ )

The template that we are using to summarise the different approaches can be found here.

Alternatives

  • Uniplate, released by Neil Mitchell (current as of 2013).

Benchmark suite

We have developed a benchmark suite that tests the expressiveness of different generic programming libraries. For more information go to: GPBench.