[Haskell] package mounting

2006-10-25 Thread Frederik Eaton
Hi lists, I recently read Simon Peyton Jones' proposal: http://hackage.haskell.org/trac/ghc/wiki/GhcPackages and disagreed with some of the design decisions. (To be fair, the aspects I disagree with are shared with most or all of the other proposals) So I've put an alternative proposal here: ht

Re: [Haskell] Monad transformer question

2006-10-25 Thread Chris Kuklewicz
Quick comments below Cyril Schmidt wrote: > Working on a Monte-Carlo simulation where I have to > calculate the values of a certain function on the given set of inputs, > I noticed that some of the input variables change for every iteration, > while others do not. > > To give a simple example, le

Re: [Haskell] Monad transformer question

2006-10-25 Thread Cyril Schmidt
Lajos, Point taken, thanks. My question, though, is not as much about how I speed up my program, as it is about the behaviour of the ReaderT monad transformer. There is something I do not understand about it, namely, why does such a small change in the code change the behaviour so much. Regards,

[Haskell] Monad transformer question

2006-10-25 Thread Cyril Schmidt
Working on a Monte-Carlo simulation where I have to calculate the values of a certain function on the given set of inputs, I noticed that some of the input variables change for every iteration, while others do not. To give a simple example, let's suppose I have a function f a1 a2 p = a1*a2 + p a