Using functions from package haskell98 - GHC 5.04

Malcolm Wallace Malcolm.Wallace@cs.york.ac.uk
Tue, 22 Oct 2002 10:28:29 +0100


"Marco van Roshum" <mvroshum@foqus-ict.com> writes:

> In my program, I use the function "isDigit", which is part of
> haskell98.Data.Char
> 
> When compiling my program, I get the error: Variable not in scope:
> isDigit. The same error occurs when I explicitly use the package
> haskell98 as in the following command-line.

Are you remembering to add "import Data.Char" to your program?

> When trying to load this program in Hugs, there is nog problem at all.

IIRC, the current release of Hugs has the function isDigit in the Prelude,
and so doesn't need any imports.  (This will change in the new October 2002
release.)

Regards,
    Malcolm