Avoiding IO

From HaskellWiki
Revision as of 10:47, 25 December 2008 by Lemming (talk | contribs) (introduction)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Haskell requires an explicit type for operations involving input and output. This way it makes a problem explicit, that exists in every language.

Lazy construction

map putStr vs. putStr concat

State monad

randomIO

ST monad

STRef instead of IORef, STArray instead of IOArray

Custom type class

example getText