Personal tools

Talk:Learn Haskell in 10 minutes

From HaskellWiki

Revision as of 09:16, 11 June 2009 by Lemming (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
In Learn_Haskell_in_10_minutes#Function_definitions, the definition of
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)