On Mon, Dec 21, 2009 at 01:46:57AM +0100, Daniel Fischer wrote: > Am Montag 21 Dezember 2009 01:00:10 schrieb Felipe Lessa: > > There's 'unamb' in Hackage, however I think you should carefully > > understand its implementation details before using it. Not that > > I use it myself. > > Which is a (much) refined version of the above, wrapped in > unsafePerformIO. It is your obligation to call it only when > legit, because it is *not* referentially transparent:
Actually my concern was about performance, not correctness. That's why I mentioned the "implementation details". It is probably easy to make your machine crawl by putting unamb in your inner loop. -- Felipe. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe