1 Dec
2000
1 Dec
'00
11:03 a.m.
Today, I thought I had discovered a bug in ghc. Then I tried hbc and Hugs, and they also rejected my program with the same error. nhc98 alone accepts it without complaint. I looked up the Report, and it seems that the program is indeed incorrect. Quick quiz: without running this through a compiler, who can spot the mistake? :-)
module Main where import Char f x = y where y | isSpace x = True y | otherwise = False main = print (f 'x')
Regards, Malcolm
9400
Age (days ago)
9400
Last active (days ago)
0 comments
1 participants
participants (1)
-
Malcolm Wallace