Re: instance declarations

2001-12-09 Thread Marcin 'Qrczak' Kowalczyk
Fri, 7 Dec 2001 11:38:14 -0800, Mark P Jones [EMAIL PROTECTED] pisze: There's no solid technical reason for this, but Haskell doesn't allow it at the moment because there isn't an easy way to name an instance declaration. There is another problem: even if we created a syntax to name them, if

Re: cond and match

2001-12-09 Thread Marcin 'Qrczak' Kowalczyk
Fri, 7 Dec 2001 17:12:52 -0500 (EST), David Feuer [EMAIL PROTECTED] pisze: I'm wondering why Haskell doesn't support Scheme-like cond statements or a pattern matching predicate. I agree that both constructs make sense. The main objective is probably that the syntax is already quite rich and

Brain Teaser

2001-12-09 Thread Faisal
i got this from a tutor who thinks hes awesome and clever and thinks that i wont be able to find the solutions to this! The question is whos clever enuf out there to help me make my tutor look like a fool! Please help, i will be in ur debt for a long time Background Rhode Jams make a

RE: Brain Teaser

2001-12-09 Thread Jay Allen
You're asking us to do your CS homework for you. Do it yourself - it's not hard if you actually think about it. Look at the Shopping Receipt exercise in Simon Thompson's HASKELL: THE CRAFT OF FUNCTIONAL PROGRAMMING if you need a template. If you get stuck, ask specific technical questions -

Re: instance declarations

2001-12-09 Thread David Feuer
Marcin 'Qrczak' Kowalczyk wrote: There is another problem: even if we created a syntax to name them, if they would not be exported by default then current programs would have to be changed. Well, the default could be to export, unless explicitly hidden. If it _is_ exported, you could have