Re: [Haskell-cafe] Writing functions in Haskell.

2005-04-29 Thread Ross Paterson
On Thu, Apr 28, 2005 at 09:22:15PM -0400, Cale Gibbard wrote: The second problem arises from hugs not doing the same thing as ghci with respect to looking up qualified variable names (that is, those with the module name specified, in this case, the standard module Char). You can tell hugs to

Re: [Haskell-cafe] Writing functions in Haskell.

2005-04-29 Thread Hal Daume III
Hal: Char.toUpper and Char.isLower in Chapter 3 seem to be a perennial stumbling block for Hugs users -- could you suggest that Hugs users load Char and just say toUpper and isLower instead? I just added a note about this :). Though the tutorial is mirrored in so many places by now, I'm

[Haskell-cafe] Writing functions in Haskell.

2005-04-28 Thread Daniel Carrera
Hello, I'm trying to get started with Haskell. I must say that as good as the language must be, the documentation was been a source of frustration. Only one document actually showed me how to get started (ie. run hugs or ghci), and I was asked to give out my email address before getting it.

Re: [Haskell-cafe] Writing functions in Haskell.

2005-04-28 Thread Cale Gibbard
Hi, I'm sorry to hear that you've been having a hard time finding good references. From the example you gave, it looks like you're using Yet Another Haskell Tutorial from http://www.isi.edu/~hdaume/htut/ which is actually my favourite tutorial. When using hugs or ghci, you should note that what

Re: [Haskell-cafe] Writing functions in Haskell.

2005-04-28 Thread Daniel Carrera
Hello Cale, Thank you for your help. Cale Gibbard wrote: From the example you gave, it looks like you're using Yet Another Haskell Tutorial from http://www.isi.edu/~hdaume/htut/ which is actually my favourite tutorial. The tutorial itself is quite good, and I like it. I guess I've had a long day,

Re: [Haskell-cafe] Writing functions in Haskell.

2005-04-28 Thread Daniel Carrera
Alright, I have what I believe must be a simple question. As one of the exercises for the Haskell tutorial I got I have to implement an alternative to the 'map' function. This is what I have: - my/prompt $ cat Test.hs module Test where my_map p [] = [] my_map p

Re: [Haskell-cafe] Writing functions in Haskell.

2005-04-28 Thread Hal Daume III
Try: module Test where import Char ... then you don't have to load it in Hugs. When you load it, I think (could be wrong, I'm not a big hugs guy) it's clearing the fact that you loaded Test. On Thu, 28 Apr 2005, Daniel Carrera wrote: Alright, I have what I believe must be a simple