[Haskell-cafe] Exception handling when using STUArray
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Wed Mar 12 15:32:50 EDT 2008
On Mar 12, 2008, at 14:17 , Donn Cave wrote:
> Sure. It isn't a lot of code, so I subjected it to Either-ization
> as an experiment, and I did indeed take the monad procedural route.
Monad != procedural, unless you insist on do notation. Think of it
as composition (it may be easier to use (=<<) which "points the same
direction" as (.)).
--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
More information about the Haskell-Cafe
mailing list