Debugging haskell

2003-02-21 Thread Sengan . Baring-Gould
http://www.catb.org/~esr/writings/taoup/html/ch01s06.html states that debugging often occupies three-quarters or more of development time. I don't think that is my experience in Haskell... more like 1/4 at most. I was wondering what others felt. Sengan

Re: can this be written more easily?

2003-02-21 Thread Mike T. Machenry
Eh, state is not possible. This is a recursive state space search. I need to branch the state of the game and not allow branches to effect others. Though I'd really like to represent them as arrays like such: data Player = Red | Green | Blue deriving (Enum,Eq,Ix) data Ticket = Taxi | Bus |

Simple problem from Hudak's SOE

2003-02-21 Thread M. Parker
I'm a real newbie to Haskell, and I'm having trouble with a particular problem dealing with higher-order functions. Exercise 5.9 in Hudak's School of Expression asks us to write a function, makeChange, s.t. it makes change for a given amount using coins in a coin supply (represented by a list