added ezyang's IO article

This commit is contained in:
Chris Allen 2014-08-25 16:37:16 -05:00
parent c7702a5acc
commit 0a8024b968

View File

@ -414,6 +414,7 @@ Comment from Reddit thread by `glaebhoerl`
Interesting side note: GHC needs to hide the state token representation behind an abstract IO type because the state token must always be used linearly (not duplicated or dropped), but the type system can't enforce this. Clean, another lazy Haskell-like language, has uniqueness types (which are like linear types and possibly different in ways I'm not aware of), and they expose the World-passing directly and provide a (non-abstract) IO monad only for convenience.
- http://blog.ezyang.com/2011/05/unraveling-the-mystery-of-the-io-monad/
- http://blog.jle.im/entry/first-class-statements