Help with ghci and Yet Another Haskell Tutorial

Hal Daume t-hald@microsoft.com
Fri, 27 Jun 2003 08:17:05 -0700


toUpper is in the Char (or Data.Char) library.  You can do:

Prelude> :m Data.Char
Data.Char> map toUpper "hello world"

or specify it completely.

Prelude> map Data.Char.toUpper "hello world"

I'll fix this reference in YAHT.  I believe that Hugs automatically
exports toUpper, which is why it was in there to begin with.

 - Hal

--
 Hal Daume III                                   | hdaume@isi.edu
 "Arrest this man, he talks in maths."           | www.isi.edu/~hdaume

-----Original Message-----
From: haskell-cafe-admin@haskell.org
[mailto:haskell-cafe-admin@haskell.org] On Behalf Of Mark Espinoza
Sent: Friday, June 27, 2003 7:53 AM
To: haskell-cafe@haskell.org
Subject: Help with ghci and Yet Another Haskell Tutorial



Greetings,

I am going through the Tutorial using ghc on a redhat 8.0 system.
Everything works fine untill I get to the map function:

Prelude>  map toUpper "hello world"

<interactive>:1: Variable not in scope: `toUpper'
Prelude>

Can anyone tel me what is or might be going on?

Thanks.

Sincerely,

Mark




Get your free e-mail address at http://felinemail.zzn.com
___________________________________________________________
Get your own Web-based E-mail Service at http://www.zzn.com
_______________________________________________ Haskell-Cafe mailing
list Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe=20