Hugs doesn't follow latest layout specification

Mark Tullsen <[email protected]>
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Organization Oregon Graduate Institute
Message-ID <[email protected]>
In the following code snippet:

f (x:xs) = "a"
   where
f [] = "b"

We have

   f [] => "b"                     -- in ghc and nhc98 and /latest/ Report
   f [] => Program error: {f []}   -- in hugs

It appears that Hugs has not been updated to follow the
most current Haskell98 Report which explicates the
layout rules in more detail.  (Which specifies that the above
'where' construct should bind nothing rather than binding
the "f [] = ...".)

- Mark
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.