Personal tools

Talk:Hitchhikers guide to Haskell

From HaskellWiki

Revision as of 09:54, 17 April 2006 by Mforbes (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Code Indentation:

Code is most easily specified by indenting it by a space in the wiki source:

-- This is some code.
sq x = x*x

If two spaces are used to indent, then the code is visually indented:

 -- Indented code.
 sq x = x*x

However, if two spaces are used, then cutting and pasting the code sample will insert a spurious space that breaks the 2D Haskell layout. Unless there is a way of indenting code visually while preserving the cut an paste layout properties, it seems that one should only use a single space to indent code.

(P.S. I am really enjoying this article! It provides a very nice practical introduction to Haskell. Mforbes 09:54, 17 April 2006 (UTC))