<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi all,<div class=""><br class=""></div><div class="">What is the simplest way to translate a non-monadic line of Haskell code, such as:<div class=""><br class=""></div></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><div class=""><font face="Menlo" class="">res = map foo xs `using` parList rseq</font></div></div></blockquote><div class=""><div class=""><br class=""></div><div class="">For use in the IO monad?</div><div class=""><br class=""></div><div class="">This doesn’t work:</div><div class=""><br class=""></div></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><div class=""><font face="Menlo" class="">res <- mapM fooM xs `using` parTraversable rseq</font></div></div></blockquote><div class=""><div class=""><br class=""></div><div class="">complaining:</div><div class=""><br class=""></div></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><div class=""><font face="Menlo" class="">No Traversable instance for IO.</font></div></div></blockquote><div class=""><div class=""><br class=""></div><div class="">Thanks,</div><div class="">-db</div><div class=""><br class=""></div></div></body></html>