
On Thu, Feb 20, 2014 at 8:16 PM, Mathew Phillips
Actually your comment in parenthesis is what made it click. If i do "result <- return $ runEval ..." it works too. The fact that the first error was complaining that it expected something of type IO should have tipped me off.
Note also that, while using <- that way "should" have the same effect as using let, it forces the value to be sequenced with I/O actions, which you may not want. It may disable optimizations, for one thing, and changes laziness since it is now constrained by sequencing with I/O when I/O isn't actually involved with it. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net