[Haskell] jhc dependencies for ghc-6.10.1

2009-03-27 Thread Philip K.F.
Dear John, et al. I will be trying jhc out, because it sounds like a good idea for some of my number-crunching apps. I just wanted to tell you how my build with ghc-6.10.1 (out-of-the-box) went, although it's not completely fair, because I may have some things from hackage installed already. Anyh

Re: [Haskell] Catching error / making library functions monadic (in failure)

2008-10-08 Thread Philip K.F. Hölzenspies
On Wednesday 08 October 2008 16:42:16 Mitchell, Neil wrote: > You might want to take a look at the Safe library, which does pretty close > to what you request. > > http://www-users.cs.york.ac.uk/~ndm/safe/ > > (or cabal install safe) > > I would happily accept a patch adding *Fail variants that fai

[Haskell] Catching error / making library functions monadic (in failure)

2008-10-08 Thread Philip K.F. Hölzenspies
Dear Hask'lers, I'm working on a graph generator that involves a lot of random selection out of a list of vertices. Basically, there are functions that look a little like this: select vs = randomRM (0,length vs - 1) >>= return . (vs !!) where randomRM is a lot like Random.randomRIO, except tha

Re: [Haskell] SOLVED Catching error / making library functions monadic (in failure)

2008-10-09 Thread Philip K.F. Hölzenspies
Dear all, Thank you very much for your reactions. Neil told me I should have posted this in haskell-cafe, so sorry for the inconvenience. Since my problem has since been solved, I figured I would send this "thanks all, it's solve" e-mail to the list, to close the issue. The magic answer turned