newbie question: variable not in scope: "isSpace"
15 Aug
2004
15 Aug
'04
3:33 a.m.
If I use isSpace from the hugs interpretor, it works. If I use isSpace from a test.hs file I get the error message: Undefined variable "isSpace" From ghc I get the error message: Variable not in scope: "isSpace" What is wrong? Guus. -- A.J. Bonnema, Leiden The Netherlands, user #328198 (Linux Counter http://counter.li.org)
15 Aug
15 Aug
4:07 a.m.
A.J. Bonnema wrote:
If I use isSpace from the hugs interpretor, it works.
If I use isSpace from a test.hs file I get the error message: Undefined variable "isSpace"
From ghc I get the error message: Variable not in scope: "isSpace"
What is wrong?
Hugs automatically imports a few extra things as well as the standard prelude. Try adding the line import Data.Char to your module.
8047
Age (days ago)
8047
Last active (days ago)
1 comments
2 participants
participants (2)
-
A.J. Bonnema -
Tom Pledger