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

I am learning Haskell

Name: Anonymous 2007-07-07 9:46 ID:djEstxaJ

I am a complete newbie to programming and now I've decided to learn Haskell because I want to code a roguelike game.
Here is what I've achieved so far:

Hugs> print Hello World!
ERROR - Syntax error in expression (unexpected end of input)
Hugs> pring "Hello World!
ERROR - Improperly terminated string
Hugs> pring "Hello World!"
ERROR - Undefined variable "pring"

Name: Anonymous 2007-07-07 11:16 ID:JNAg/+fe

>>4

let pring :: (Show a) => a -> IO () ; pring = print
print "Hello Dongs"
"Hello Dongs"

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