> readIL' should be defined differently. Try:
>
> readIL' ans =
>do
> a <- ...
> b <- ...
> if a==0 && b==0 then return ans else readIL' ((a,b):ans)
>
> (note that I added "return".)
> I don't know what the ...s should be, but they definitely should not be
> what they are:
At 2002-03-12 20:18, Jyrinx wrote:
>Of course, this "probable cause" is ridiculous at face value ... anyway,
>my code makes as much sense to me as it can at the moment ... how should
>I get it to make sense to GHC? (I couldn't find any examples on
I can see the bug. It's a very common one when u
I just got back from a high-school programming competition where the
only allowed languages were C[++] and Java (*grmbl*). To see just how
cool Haskell is, I'm redoing some of the problems in this more
enlightened language :-)
Anyway, that explains the rather strict requirements for my program's