[Haskell-cafe] deriving

Bulat Ziganshin bulat.ziganshin at gmail.com
Mon Apr 7 18:30:12 EDT 2008


Hello Hans,

Tuesday, April 8, 2008, 2:28:53 AM, you wrote:

> 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.

deriving is a part of data clause and indentation just allows us to
continue clause from prev. line. if not indented, deriving will be
parsed as separate clause (and btw such clause, "standalone deriving"
was added to ghc 6.8)

-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list