isDigit problem

"Nicola Whitehead" <[email protected]>
Newsgroups gmane.comp.lang.haskell.hugs.user
Message-ID <[email protected]>
Hi,
 
I've got a problem with parser primitives using Hugs. 
 
I have the standard code to define parsers for digits etc
 
sat              :: (Char -> Bool) -> Parser Char
sat p             =  do x <- item
                         if p x then return x else failure
 
digit            :: Parser Char
digit             =  sat isDigit

but when I try to run it I get the error 
 
Undefined variable "isDigit"
 
It does the same for any of the isXXXX predicates. I´m completely flummoxed, so any help would be greatly appreciated. :( 
 
Thanks,
 
Nik
 
Dr Nik Freydís Whitehead
University of Akureyri, Iceland
*********************************************************************
Having the moral high ground is good.
Having the moral high ground and an FGMP-15 is better.
*********************************************************************

_______________________________________________
Hugs-Users mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/hugs-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.