[Haskell] proposal about declaring language version andlanguage extensions used in specific module

Simon Marlow simonmar at microsoft.com
Wed Aug 10 10:27:45 EDT 2005

On 10 August 2005 08:03, Bulat Ziganshin wrote:

> Hello Ross,
> Wednesday, August 10, 2005, 4:24:53 AM, you wrote:
>> On Tue, Aug 09, 2005 at 03:37:01PM -0700, John Meacham wrote:
>>> I thought there was talk of a standardized {-# LANGUAGE ... #-}
>>> pragma somewhere.. but I can't seem to find it. 
>> http://www.haskell.org//pipermail/haskell/2003-September/012692.html
>> http://www.haskell.org//pipermail/libraries/2004-October/002589.html
> of course, my proposed extension is very trivial. but compared to
> above mentioned variants, it moves definition of language used in
> module from pseudocomments to language itself. i also propose moving
> of all pragmas from pseudocomments to special language statements

The language declaration affects the grammar of the language, and even
whether the source is preprocessed or not, so you can't put the
declaration into the language itself.  {-# LANGUAGE #-} is the right
thing (and we should implement it in GHC, really).


More information about the Haskell mailing list