Hi

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"

main
  = do
    x <- f (Just 1, 2)
    print x
----------------------------------------------------------------------

Inserting an extra space on 4:5 and 5:5 and GHC compiles it.  I can't
tell from the report whether the compiler or my odd way of writing do
statements is to blame...  (Hugs 1.4 does not complain.)

Cheers,
  Bjarte

--
Bjarte M. ?stvold                               [EMAIL PROTECTED]
Dept. of Computer and Information Science       +47 73 59 44 83 (tel)
Norwegian Univ. of Science and Technology       +47 73 59 44 66 (fax)
Gl?shaugen, N-7034 Trondheim, Norway


Reply via email to