
5 May
2003
5 May
'03
11:09 a.m.
On Tue, 6 May 2003, sashan wrote: (snip)
choice <- getLine case choice of 1 -> do putStrLn "f1"
(snip) getLine returns a String, yet the 1 is your case statement is a number. Try, case (read choice) of instead. "read" complements "show": it is a handy function that turns strings into what you want. (The "Read" typeclass is relevant.) -- Mark