[Haskell-cafe] Re: Layout rule

Ben Rudiak-Gould Benjamin.Rudiak-Gould at cl.cam.ac.uk
Wed Mar 1 18:01:26 EST 2006

Ketil Malde wrote:
> Multi line comments are nice for commenting out blocks of code.

They're also nice for comments within a line. E.g. haskell-src-exts contains 
the declaration

   data HsQualConDecl
           = HsQualConDecl SrcLoc
               {- forall -} [HsName] {- . -} HsContext {- => -} HsConDecl

Probably half of my uses of {- -} begin and end on the same line.

-- Ben

More information about the Haskell-Cafe mailing list