[Haskell-cafe] Re: wxHaskell and do statements

Sven Panne Sven.Panne at aedion.de
Fri Dec 2 08:41:22 EST 2005


Am Dienstag, 29. November 2005 16:16 schrieb Sebastian Sylvan:
> IIRC Haskell assumes a tab is 8 spaces.

Correctly, it is explicitly specified in the Haskell spec, see:

   http://haskell.org/onlinereport/syntax-iso.html#layout

> IMO that's way too much. Haskell tends to take up quite a bit of
> horizontal real-estate so I usually go with 2 spaces.
>
> At any rate, I set my editor to convert them to spaces.

I think this in general the best idea for all projects, even if the language 
in question has no layout rule. Tabs are simply evil...

Cheers,
   S.


More information about the Haskell-Cafe mailing list