In association with heise online

25 November 2009, 16:44

Haskell 2010 gets module hierarchies and external libraries

  • Twitter
  • Facebook
  • submit to slashdot
  • StumbleUpon
  • submit to reddit

The 2010 version of the functional programming language Haskell includes several features that are already implemented in current compilers such as GHC (Glasgow Haskell Compiler). This includes a syntax change that reduces the amount of indentation in if-else structures, hierarchical modules and the FFI (Foriegn Function Interface).

Heirachical modulesPDF changes the interpretation of module references. Where, previously, a reference such as A.B.C.D had meant the composition of constructor D from module C, with constructor B from module A, the reference now refers to constructor D from module A.B.C. The previous composition form can be achieved using A.B . C.D, explicitly adding spaces.

The Foreign Function Interface adds support for invoking code written in other programming languages from Haskell and vice versa. Version 1.0 of FFI focuses on interaction with C code. Other changes include a change to the syntax of comments and pattern guards. The announcement contains a complete list of the new features. The announcement also notes that the process to develop Haskell 2011 now begins and directs those who wish to participate to the Haskell Prime wiki.


Print Version | Send by email | Permalink:

  • July's Community Calendar

The H Open

The H Security

The H Developer

The H Internet Toolkit