Talk:Learn Haskell in 10 minutes

From HaskellWiki
Revision as of 09:16, 11 June 2009 by Lemming (talk | contribs) (let in GHCi)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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)