Difference between revisions of "Talk:Learn Haskell in 10 minutes"

From HaskellWiki
Jump to navigation Jump to search
m (insert missing dashes)
(let in GHCi)
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
   
 
Don't you think referencing [http://norvig.com/21-days.html "Teach Yourself Programming in Ten Years"] would be useful here? --[[User:Vvv|vvv]] 15:12, 2 August 2007 (UTC)
 
Don't you think referencing [http://norvig.com/21-days.html "Teach Yourself Programming in Ten Years"] would be useful here? --[[User:Vvv|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 -} [[User:DonStewart|dons]] 05:07, 5 September 2008 (UTC)
  +
  +
I think it would be useful to mention that constants (including functions) can be defined in GHCi using <code>let</code>. You do not need to write a module for that purpose. Data types or type classes however cannot be defined. [[User:Lemming|Lemming]] 09:16, 11 June 2009 (UTC)

Latest revision as of 09:16, 11 June 2009

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)

I think it would be useful to mention that constants (including functions) can be defined in GHCi using let. You do not need to write a module for that purpose. Data types or type classes however cannot be defined. Lemming 09:16, 11 June 2009 (UTC)