Difference between revisions of "Future of Haskell"

From HaskellWiki
Jump to navigation Jump to search
 
Line 23: Line 23:
 
== Extensions of Haskell ==
 
== Extensions of Haskell ==
   
<DL><DT><B><A HREF="http://haskell.org/hawiki/HaskellTwo">A Wiki page</A></B><DD>
+
<DL><DT><B>[http://haskell.org/hawiki/HaskellTwo A Wiki page]</B><DD>
 
collects all kinds of extensions proposed for the language, libraries and specific implementations.
 
collects all kinds of extensions proposed for the language, libraries and specific implementations.
 
</DL>
 
</DL>
Line 39: Line 39:
 
<li><b>Pattern Guards</b> by Simon Peyton-Jones is a proposal
 
<li><b>Pattern Guards</b> by Simon Peyton-Jones is a proposal
 
to generalize guards used in function definitions. See the
 
to generalize guards used in function definitions. See the
<a href="http://research.microsoft.com/Users/simonpj/Haskell/guards.html"> proposal </a> for
+
[http://research.microsoft.com/Users/simonpj/Haskell/guards.html proposal] for
 
further details. Implemented in GHC, proposed for Haskell 2.
 
further details. Implemented in GHC, proposed for Haskell 2.
<li><a href="ftp://ftp.botik.ru:/pub/local/Mechveliani/basAlgPropos/">
+
<li>[ftp://ftp.botik.ru:/pub/local/Mechveliani/basAlgPropos/
Basic algebra proposal.</A> In particular: Reformulating numeric classes,
+
Basic algebra proposal.] In particular: Reformulating numeric classes,
 
instance ruled type and domain conversion.
 
instance ruled type and domain conversion.
 
<LI>[http://www.soi.city.ac.uk/~ross/notes/ArrowsInHaskell.html Haskell Proposal: Syntactic Sugar for Arrows]
 
<LI>[http://www.soi.city.ac.uk/~ross/notes/ArrowsInHaskell.html Haskell Proposal: Syntactic Sugar for Arrows]
Line 52: Line 52:
   
 
<DL>
 
<DL>
<dt><a href="http://www.cs.mu.oz.au/~sulzmann/chameleon/"><strong>Chameleon</strong></a>
+
<dt>[http://www.cs.mu.oz.au/~sulzmann/chameleon/ Chameleon]
 
<dd>Chameleon is a Haskell-style language which provides a flexible
 
<dd>Chameleon is a Haskell-style language which provides a flexible
 
overloading mechanism based on Constraint Handling Rules (CHRs).
 
overloading mechanism based on Constraint Handling Rules (CHRs).

Revision as of 05:51, 23 January 2006

Future development of Haskell

Haskell 98 is complete. It is the current official definition of Haskell (modulo some minor fixes, as detailed on the Haskell 98 bug page). We expect that this language will be supported in the long term even as new extensions are added to Haskell; compilers will continue to support Haskell 98 (via a special flag).

Nonetheless, the language evolves and numerous extensions have been proposed and many of them have been implemented in some Haskell systems; for example pattern guards, scoped type variables, multi-parameter type classes, local universal and existential quantification. The Haskell mailing lists are a forum for discussing new language features. People proposing an additional language feature should implement the new feature or convince the developers of one of the Haskell systems to do so. Then many people can test the practical usefulness of the extension. Finally, the people seriously interested in the new feature should define the new feature with respect to Haskell 98 in a document (a new mailing list can be set up for this purpose). This kind of addendum to the Haskell 98 report clearifies the details and can be used for adding the feature to other Haskell systems. The definition of the foreign function interface (FFI) for Haskell is a good example for this process. \ On a rather longer time schedule a committee lead by John Launchbury may develop Haskell II. Obviously well-tested and well-described extension proposals will have a higher chance of being adopted.


Extensions of Haskell

A Wiki page
collects all kinds of extensions proposed for the language, libraries and specific implementations.

Below we present some of the various extensions that have been implemented or proposed. See also the Haskell mailing lists.


Variations of Haskell

Chameleon
Chameleon is a Haskell-style language which provides a flexible overloading mechanism based on Constraint Handling Rules (CHRs). The user can impose conditions on overloaded identifiers via CHRs.
<A NAME="gofer"><A HREF="http://www.cse.ogi.edu/~mpj/goferarc/index.html">Gofer</A></A>
Gofer is a small interpreter by Mark Jones supporting a language based on the Haskell report version 1.2. Gofer is intended as an experimental language, particularly where type classes are involved. Although Haskell has adopted a number of ideas from Gofer, the Gofer type class system is still more flexible than the Haskell one. Available for all Unix platforms including Linux, DOS, and Macs. Hugs is the successor to Gofer and Gofer is no longer supported.
<A HREF="http://www.google.com/search?q=goferdoc">Html-version of the Gofer manual</A>
<A NAME="gph" HREF="http://www.cee.hw.ac.uk/~dsg/gph/"> GPH, Glasgow Parallel Haskell</A>
is an extension of Haskell for parallel programming. It adds just two new primitives to the language, namely, a form of parallel composition par, and sequential composition seq. With judicious use of par and seq it is possible to express how a program should be evaluated in parallel.
<A HREF="http://abp.lcs.mit.edu/projects/ph/">pH - a parallel Haskell</A>
The pH language is is a parallel, eagerly-evaluated variant of Haskell with syntactic provisions for loops, barriers, and I- and M- structure storage. The eager evaluation model of pH is similar to that of Id; the current version of the pH compiler shares a back end with the Id compiler, producing code for the Monsoon dataflow machine. The front end of the pH compiler is a modification of hbc.
<A HREF="http://www.score.is.tsukuba.ac.jp/~chak/goffin/">Goffin</A>
A Haskell extension for parallel and distributed programming.
<a href="http://www.mondrian-script.org/">Mondrian</a>
Mondrian is evolving from "just" an internet scripting language to a "functional language for OO environments". Mondrian is a non-strict functional language with threads, exceptions and interlanguage working - a Haskell "light" with extras.
<A HREF="http://www.cs.chalmers.se/~patrikj/poly/polyp/">PolyP - a polytypic programming language</A>
PolyP extends a functional language (a subset of Haskell) with a construct for writing polytypic functions. A polytypic function is a function that is defined by induction on the structure of user-defined datatypes.
<A HREF="http://www.cs.chalmers.se/~nordland/ohaskell/">O'Haskell</A>
O'Haskell is an object-oriented extension to Haskell developed at Chalmers. O'Haskell conservatively adds two major features to the Haskell core: a monad of concurrent, state-encapsulating reactive objects, and a type system with subtyping between records as well as datatypes. An implementation is available, O'Hugs, which is a derivative of Hugs 1.3b.
<A HREF="http://www.mathematik.uni-marburg.de/inf/eden"> Eden </a>
Eden is a parallel functional language that provides a new perspective on parallel programming. It gives programmers enough control to implement their parallel algorithms efficiently (including granularity issues) and at the same time frees them from the low level details of process management. Eden is explicit about processes and their incoming and outgoing data, but abstracts from the transfer of these data between processes and the necessary synchronisation. Eden extends the Haskell but overrules lazy evaluation whenever it is necessary to support parallelism.
<a href="http://www.informatik.uni-kiel.de/~mh/curry/">Curry</a>
Curry combines in a seamless way features from functional programming (nested expressions, higher-order functions, lazy evaluation), logic programming (logical variables, partial data structures, built-in search), and concurrent programming (concurrent evaluation of expressions with synchronization on logical variables). Many Haskell programs are also valid Curry programs.
<a href="http://www.mrtc.mdh.se/projects/DFH/">Data Field Haskell</a>
Data Field Haskell implements an instance of Data Fields, a generalization of arrays. The purpose is to support generic array- and data parallel programming on a very high level, for rapid prototyping of parallel algorithms. The most important language extension to Haskell is the forall-construct, which allows convenient definitions of data fields.
<a href="http://www.haskell.org/th/">Template Haskell</a>
Template Haskell is an extension to Haskell 98 that allows you to do type-safe compile-time meta-programming, with Haskell both as the manipulating language and the language being manipulated.