[Haskell] offside rule question

Tomasz Zielonka tomasz.zielonka at gmail.com
Fri Jul 15 04:49:59 EDT 2005


On Fri, Jul 15, 2005 at 09:10:16AM +0100, Axel Simon wrote:
> I agree with Frederik since I've been bitten by that rule before.
> Defining a single function like so:
> 
> let a very long definition of "a" = and the body has to be here 
>                                     is a very long application to
>                                     "and" and using long arguments
>                                     like definition is a pain
> in
> 
> 
> is harder to read and might force you to use shorter, less descriptive
> variable names.

But you can format it this way:

let a very long definition of "a" =
        and the body has to be here is a very long application to "and"
        but using long arguments like definition is not that bad
in

or this way:

let 
  a very long definition of "a" =
    and the body has to be here is a very long application to "and" but
    using long arguments like definition is not that bad
in

Best regards
Tomasz


More information about the Haskell mailing list