[Haskell-cafe] Breaking up long lines

Neil Mitchell ndmitchell at gmail.com
Sat Apr 1 21:34:44 EST 2006


Hi,

> What is a good technique for breaking up long lines of code (for easier readability)?
Indentation, the {- -} comments are probably having little effect.

For example, the following is perfectly valid:

f x y = if x then
                y
          else
                not y

The indentation rules are quite complex, but just type your code
"sensibly indented" and it will probably just work.

Thanks

Neil

On 4/2/06, miketerrance <miketerrance at lycos.co.uk> wrote:

>
> I have been inserting {- -} comments but there must be a better way.  Something like \ in Python?
>
> Lycos email has 300 Megabytes of free storage... Get it now at mail.lycos.co.uk
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
>


More information about the Haskell-Cafe mailing list