Editor Tab Expansion

Glynn Clements glynn.clements@virgin.net
Fri, 6 Dec 2002 20:27:55 +0000


Peter wrote:

> > Currently, I expand tabs to 4 spaces only, so
> >
> > \tx=bar
> >
> > looks like
> >
> > ____foo = bar
> >
> > to me when the compiler sees
> >
> > ________foo = bar
> 
> If you want to go the layout way perhaps someone/you could put in a compiler
> option for tab expansion. Check in ghc/compiler/parser/Lex.lhs - it should
> be a starting point. Perhaps I will do it if I get a chance.

That seems like a really bad idea to me. If someone writes code which
relies upon this particular option, but it isn't given, there's a good
chance that the code will be compiled incorrectly but without any
warning.

-- 
Glynn Clements <glynn.clements@virgin.net>