[Haskell-cafe] Re: Cont, ContT and IO() - Code on hpaste

2009-07-04 Thread Günther Schmidt
Hi, I've put the code that I wish to transform from using exceptions to using continuations on hpaste: ?http://hpaste.org/fastcgi/hpaste.fcgi/view?id=6515#a6515 thanks Günther Am 04.07.2009, 01:11 Uhr, schrieb Günther Schmidt gue.schm...@web.de: Hi, I've got an IO action, some file

Re: [Haskell-cafe] Re: Cont, ContT and IO() - Code on hpaste

2009-07-04 Thread Matthias Görgens
Hi Günther, here is a solution with the Maybe Monad: http://hpaste.org/fastcgi/hpaste.fcgi/view?id=6515#a6515 Matthias. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Cont, ContT and IO() - Code on hpaste

2009-07-04 Thread Matthias Görgens
P.S. See http://en.wikibooks.org/wiki/Haskell/Monad_transformers for some documentation. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: Cont, ContT and IO() - Code on hpaste

2009-07-04 Thread Matthias Görgens
P.P.S. Strange it does not seem to work with the paste. So here comes the solution by mail: module Consolidator.BusinessLogic.ConflictsResolved (consolidateDuplicates) where import System.FilePath import System.Directory import Control.Monad (filterM) import Control.Exception (throwIO) import