User talk:Mwn3d: Difference between revisions
Content added Content deleted
Underscore (talk | contribs) (→UnderBot and whitespace: Not entirely, but it's clever about it.) |
No edit summary |
||
Line 30: | Line 30: | ||
foe = 3</lang> |
foe = 3</lang> |
||
, it's translating a technically illegal program into a legal one. —[[User:Underscore|Underscore]] ([[User talk:Underscore|Talk]]) 17:58, 19 November 2009 (UTC)</blockquote></blockquote> |
, it's translating a technically illegal program into a legal one. —[[User:Underscore|Underscore]] ([[User talk:Underscore|Talk]]) 17:58, 19 November 2009 (UTC)</blockquote></blockquote> |
||
<blockquote><blockquote><blockquote>Actually, Haskell doesn't have such a requirement; what it does have is the layout rule, which does apply to "top-level" definitions in modules since they are after a <code>where</code> clause: all items in a layout block must start in the ''same'' column. This is legal H98: |
|||
<lang haskell> module Main where |
|||
main = putStr "foo" |
|||
rain = main</lang> |
|||
This is not: |
|||
<lang haskell> module Main where |
|||
main = putStr "foo" |
|||
rain = main |
|||
plain = rain</lang> |
|||
—[[User:Kevin Reid|Kevin Reid]] 19:53, 19 November 2009 (UTC) </blockquote></blockquote></blockquote> |