[Haskell-cafe] Re: Can we come out of a monad?

Ertugrul Soeylemez es at ertes.de
Sun Aug 1 06:43:14 EDT 2010


Ivan Lazar Miljenovic <ivan.miljenovic at gmail.com> wrote:

> No, a pure function is one without any side effects.

There are no functions with side effects in Haskell, unless you use
hacks like unsafePerformIO.  Every Haskell function is perfectly
referentially transparent, i.e. pure.


Greets,
Ertugrul


-- 
nightmare = unsafePerformIO (getWrongWife >>= sex)
http://ertes.de/




More information about the Haskell-Cafe mailing list