Some useful libraries

1998-06-09 Thread Arjan van Ijzendoorn
In recent weeks we have been organising and polishing our locally produced Haskell software. Most of this software was written for educational purposes, but may be quite useful for a wider audience. At: http://www.cs.ruu.nl/groups/ST/Software/index.html you can find links and information ab

Re: circular module imports

1998-06-09 Thread Simon L Peyton Jones
Alex, If I were you I'd dispense with "deriving(Read,Show)" in module Publisher, and add an explicit instance for Read/Show on Publisher in PublisherDB. That would solve your circularity problem. Haskell does permit mutually recursive modules, but Hugs does not support them, and GHC requires so

Re: Exceptions are too return values!

1998-06-09 Thread Mariano Suarez Alvarez
On Mon, 8 Jun 1998, S. Alexander Jacobson wrote: > 1. it is not logically consistent to treat exceptions as return values A function cannot do anything but return a value, can it? > For example, suppose that we define a new function: > > > foo' a b = a + b -- foo' is strict in its arguments >

Re: Exceptions are too return values!

1998-06-09 Thread Alex Ferguson
Alex Jacobson: > Ooops, I forgot to remove the "and". Anyway, my point is that > 1. it is not logically consistent to treat exceptions as return values > 2. as an implementation matter it violates laziness to do so OK, now I follow. And diagree. ;-) On your second point first: I'm not sure w