[Haskell] Re: Global Variables and IO initializers

Lennart Augustsson lennart at augustsson.net
Wed Nov 24 02:53:47 EST 2004

ajb at spamcop.net wrote:
>>No.  I mean by the "Haskell language" what is described in
>>the Haskell 98 Report.   unsafePerformIO is not part of the language,
>>it is a value defined by one of the standard hierarchical libraries.
> unsafePerformIO is part of the FFI addendum to the H98 report.  So I
> think it counts as being part of "the Haskell language" by any reasonable
> sense of that phrase.

Well, I don't.  unsafePerformIO is an extension that is very much
against the spirit of Haskell.  Haskell with it does not have the
properties I want.  So I don't use it. :)
I think any addition that breaks the semantics of the language
should be very clearly labelled as such.

	-- Lennart

More information about the Haskell mailing list