Simon Marlow writes:

> Bjarte Mayanja Oestvold <[EMAIL PROTECTED]> writes:
> 
> > GHC 2.10 complains about layout in a way that I think previous
> > versions did not (sorry not to be definitive here, previous versions
> > have been recirculated).
[..]
> I think this one should be allowed; I can't remember anything in the
> Haskell Report that says the lexical scoped must be strictly
> increasing in indentation.  However, you could then do things like
> 
> > f a
> >   = do
> >     case a of
> >  (Just x, _) -> return x
> >  _ -> error "hey"
> 
> which is kind of hard to read...

This one bit me on some old (Gofer) code:  I had

> let Foo x
>   = bar
> in baz

GHC required

> let Foo x
>      = bar
> in baz

for it to be accepted.

--KW 8-)
-- 
: Keith Wansbrough, MSc, BSc(Hons) (Auckland) -------------------------:
: PhD Student, Computing Science, University of Glasgow, Scotland.     :
: Native of Antipodean Auckland, New Zealand: 174d47' E, 36d55' S.     :
: http://www.dcs.gla.ac.uk/~keithw/  mailto:[EMAIL PROTECTED]       :
:----------------------------------------------------------------------:

Reply via email to