Talk:Write Yourself a Scheme in 48 Hours/First Steps

Exercicse 2 correction : take care of function/operator precedence. module Main where import System.Environment

main :: IO main = do args <- getArgs putStrLn (show (read (args !! 0) + read (args !! 1) ) )

smthing
So far so good. You may want to mention in the first couple paragraphs that whitespace and indentation are significant. This tripped me up, making the first program with a "do" not run for me. I didn't know what to look for. Thanks -- Jason Felice

function call
the exercises ask you to use read and show to do some simple arithmetic on the arguments. Unfortunately it isn't explained how to call functions or operators, which leads me to the following ungrammatical program: main = do args <- getArgs putStrLn (show ((read args !! 0) + (read args !! 1))) --MarSch 16:02, 21 May 2007 (UTC)


 * For what it's worth, function application has the highest precedence of them all, so your  is being understood as   Feel free to update the solutions page, of course, maybe pointing this out -- Kowey 06:01, 22 May 2007 (UTC)

Shouldnt it be [arg] <- getArgs to keep up with good practices? --Xpika 06:55, 10 June 2007 (UTC)

Broken link
The link in "explained [evaluator1.html#show later]) that will bind variables" is broken (I tried to fix it myself, but even wiki markup is too complicated for me :-.

Need more exeplaination on function
I think this section should explain more about what is a function. And also explain a bit the syntax and the scope of the variable. As it's said earlier it should be explain the precedence rule when function is apply.

A small suggestion
"Haskell is case-sensitive: module names are always capitalized, declarations always uncapitalized."

Perhaps this sentence should be modified to replace "always" with "conventionally" or "must be", depending on whether this is something Haskell enforces or not.--Tigerthink (talk) 05:50, 29 December 2008 (UTC)

First Steps
Notepad++ has support for Haskell and is certainly a much better choice than Notepad 104.148.143.120 (discuss) 00:40, 8 March 2016 (UTC) peter a g