[Haskell-beginners] indentation
Brent Yorgey
byorgey at seas.upenn.edu
Sun Feb 14 20:51:19 EST 2010
On Sun, Feb 14, 2010 at 04:30:27PM -0500, Jorden Mauro wrote:
> On Sun, Feb 14, 2010 at 3:20 PM, Daniel Fischer
> <daniel.is.fischer at web.de> wrote:
> > Am Sonntag 14 Februar 2010 20:54:54 schrieb John Moore:
> >> Hi all,
> >> I must be doing something wrong with my tabs. Because this
> >> keeps telling me parse error. Can some one see if it is indentation. I'm
> >> sending a file so as you'll be able to see what going on. If I copy it
> >> here it can appear wrong the difference is with the Var expression.
> >>
> >> John
> >
> > First of all, *don't mix tabs and spaces for indentation* (best, don't use
> > tabs at all).
>
> I find the latter a bit too restrictive, especially since I use a text
> editor that is a glorified version of ed. Hitting the spacebar 19
> times is too much to ask of me.
>
> And as such, I am occasionally forced to do something when a tab
> doesn't get me past the word `where' or `let', but isn't that the
> majority of what Layout specifies?
>
> Is there a good answer for caveman programmers who like ed and tabs?
Another good answer is to use explicit curly braces and semicolons so
you don't have to rely on layout.
-Brent
More information about the Beginners
mailing list