On 7 Apr 2008, at 21:48, Brandon S. Allbery KF8NH wrote:
But here, one would have to think about how the compiler should be able to distinguish
  data Bool = False | True
    instance (Eq)
from
  data Bool = False | True

  instance Eq Bool where
    x == y = ...

Layout already does that, doesn't it? The former, being indented, is a continuation line.

At least Hugs complains if one does not indent "deriving ...", but I do not know what the standard says. If is required, then it can be changed.

  Hans


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to