Personal tools

Talk:Learn Haskell in 10 minutes

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
Line 5: Line 5:
   
 
What is the syntax for comments in Haskell code?
 
What is the syntax for comments in Haskell code?
  +
  +
:: -- introduces a single line comment
  +
:: {- is a nested comment -} [[User:DonStewart|dons]] 05:07, 5 September 2008 (UTC)

Revision as of 05:07, 5 September 2008

In Learn_Haskell_in_10_minutes#Function_definitions, the definition of
main
is not a function, but rather an IO definition. Haskell cleanly separates the notion of "function" from "definition". I suggest renaming this section just "Definitions" and tweaking the explanation. Conal 13:17, 18 July 2007 (UTC)
Yes - I agree with Conal and have done a start, albeit without renaming the section to definitions.--BrettGiles 17:54, 22 July 2007 (UTC)

Don't you think referencing "Teach Yourself Programming in Ten Years" would be useful here? --vvv 15:12, 2 August 2007 (UTC)

What is the syntax for comments in Haskell code?

-- introduces a single line comment
{- is a nested comment -} dons 05:07, 5 September 2008 (UTC)