27.12.2013 Views

Wearing the hair shirt Wearing the hair shirt - Microsoft Research

Wearing the hair shirt Wearing the hair shirt - Microsoft Research

Wearing the hair shirt Wearing the hair shirt - Microsoft Research

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Open challenge 1<br />

Open problem: <strong>the</strong> IO monad has become Haskell’s sinbin.<br />

(Whenever we don’t understand something, we<br />

toss it in <strong>the</strong> IO monad.)<br />

Festering sore:<br />

unsafePerformIO :: IO a -> a<br />

Dangerous, indeed type-unsafe, but occasionally<br />

indispensable.<br />

Wanted: finer-grain effect partitioning<br />

e.g.<br />

IO {read x, write y} Int

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!