Is the following fragment legal Haskell? Section B.3 of the report is
not clear enough in this respect (at least for me  :-}

foo x = do
     case x of
  _ -> return '?'

If it *is* legal, GHC is wrong and Hugs is correct, otherwise GHC is
right and Hugs is too liberal and its library contains some layout
errors.

Waiting for enlightment,
   Sven "Nitpick" Panne

-- 
Sven Panne                                        Tel.: +49/89/2178-2235
LMU, Institut fuer Informatik                     FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen              Oettingenstr. 67
mailto:[EMAIL PROTECTED]            D-80538 Muenchen
http://www.pms.informatik.uni-muenchen.de/mitarbeiter/panne


Reply via email to