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).
>
> Bug.hs:4:5: Layout error -- indentation should be > 4 cols on input: "("
>
> ----------------------------------------------------------------------
> f a
> = do
> case a of
> (Just x, _) -> return x
> _ -> error "hey"
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...
Cheers,
Simon
--
Simon Marlow [EMAIL PROTECTED]
University of Glasgow http://www.dcs.gla.ac.uk/~simonm/
finger for PGP public key