Patrik writes:

> Please define the cpp macro
> 
>   __HASKELL_VERSION__=98
> 
> for all Haskell 98 implementations.

Haskell implementors out there might be interested in my proposal for
(inter alia) a properly Haskellised preprocessor for Haskell,
submitted to the Haskell Workshop.  This includes a suggestion for
standardised macros, including __HASKELL__=9800 (or 130, 140, etc).

The paper is available from

  http://www.cl.cam.ac.uk/users/kw217/research/papers.html

ABSTRACT:

Existing large Haskell systems make extensive use of the C
preprocessor, CPP. Such use is problematic, as CPP is not designed for
use with Haskell code.  Certain features of the Haskell report also
indicate a possible deficiency in the Haskell language.  This paper
investigates these deficiencies, and proposes two extensions to
Haskell: the inclusion of distfix operators, and the incorporation of
a Haskell preprocessor, HSPP, into the Haskell standard. Related
issues are discussed, including the provision of a general macro
facility for Haskell.

--KW 8-)




Reply via email to