[Haskell-cafe] About code style ?

Bayley, Alistair Alistair.Bayley at invesco.com
Tue Feb 2 07:01:25 EST 2010

> From: haskell-cafe-bounces at haskell.org 
> [mailto:haskell-cafe-bounces at haskell.org] On Behalf Of zaxis
> > 
> > For me i like C style instead of layout. For example, 
> > func1 a = do {
> >   -- ...;
> >    a * 2;
> >   -- ...;
> > }

The report has all the gory details. The brace+semicolon syntax isn't
just for do-blocks; it can be used anywhere that indenting is used to
specify scope.

Section 2.7:

Section 9.3:

Confidentiality Note: The information contained in this message,
and any attachments, may contain confidential and/or privileged
material. It is intended solely for the person(s) or entity to
which it is addressed. Any review, retransmission, dissemination,
or taking of any action in reliance upon this information by
persons or entities other than the intended recipient(s) is
prohibited. If you received this in error, please contact the
sender and delete the material from any computer.

More information about the Haskell-Cafe mailing list