Re: [Haskell-cafe] modelling problem

2006-12-08 Thread J. Garrett Morris
On 12/8/06, Kurt Schelfthout <[EMAIL PROTECTED]> wrote: Hi Haskell'ers, class Activity a c where start :: c -> a -> Time --start of the activity (this isn't actually dependent on c, I guess) end :: c -> a -> Time --end of the activity delta :: a -> Time ->

Re: [Haskell-cafe] modelling problem

2006-12-08 Thread Bulat Ziganshin
Hello Kurt, Friday, December 8, 2006, 1:11:35 PM, you wrote: > I'm trying, more as a first excercise in Haskell than anything else, to > class Activity a c where seems like your goes from OOP world? :) type classes are pretty rare birds in Haskell programs. There are other ways to implement suc

Re: [Haskell-cafe] modelling problem

2006-12-08 Thread Henrik Nilsson
Dear Kurt, > I'm trying, more as a first excercise in Haskell than anything else, > to code a simulation framework in Haskell. I don't have the time to respond to your mail in detail right now, but you might want to have a look at the work on Fran (functional reactive animation), FRP (Functional

[Haskell-cafe] modelling problem

2006-12-08 Thread Kurt Schelfthout
Hi Haskell'ers, I'm trying, more as a first excercise in Haskell than anything else, to code a simulation framework in Haskell. A simulation is a bunch of simulation state consisting of constituents (e.g. physical entities like a ball or properties like temperature), on which agents (e.g. s