[Haskell-cafe] Indentation woes

Stefan O'Rear stefanor at cox.net
Thu Jul 26 16:02:43 EDT 2007


On Thu, Jul 26, 2007 at 02:58:21PM -0500, Nicolas Frisby wrote:
> A bandaid suggestion:
>
> longFunctionName various and sundry arguments = f where
> f | guard1 = body1
> f | guard2 = body2
>   | ...
>    where declarations
>
> (Disclaimer: untested)
>
> As I understand it, there can be guards on the definition of f even if
> it takes no arguments. Those guards can reference your the various and
> sundry arguments.

Eh?  Mine doesn't use up a where clause and doesn't use a f noise symbol.
Why do you need a band-aid?

"longFunctionName\32=\n\32|\32guard\32=\32body\n\32|\32guard\32=\32body\n\32..."

Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20070726/075f67af/attachment.bin


More information about the Haskell-Cafe mailing list