Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Haskell questions

Name: Anonymous 2007-07-19 5:21 ID:v7kq1cqT

Hi, I recently decided to give Haskell another whirl, so this will become my ``Newbie Question'' thread.

First, what does anon use for Haskell dev? GHC or Hugs? Also, are there any tutorials for setting Emacs up with Haskell (GHC or Hugs) under Windows? I can't figure this out...

Next, I'm wondering why the following code doesn't work in Hugs, yet works fine in the GHC REPL:

Hugs> map toUpper "Hello World"
ERROR - Undefined variable "toUpper"
Hugs> map Char.toUpper "Hello World"
ERROR - Undefined qualified variable "Char.toUpper"

In `Yet Another Haskell Tutorial,' it says Hugs doesn't like fully qualified names, yet as you can see it fails on both qualified and unqualified. The latter input works in GHC, btw.

Thanks anon, I'll probably ask more questions if need be...

Name: Anonymous 2007-07-21 12:32 ID:Heaven

>>19
Expression you say? you must be talking about lisp!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List