RE: [Haskell-cafe] Haskell newbie indentation query.

2008-10-17 Thread Ramaswamy, Vivek
Thanks Jules and Daniel. That was very helpful. Regards -Vivek Ramaswamy- -Original Message- From: Jules Bean [mailto:[EMAIL PROTECTED] Sent: 15 October 2008 18:19 To: Ramaswamy, Vivek Cc: haskell-cafe@haskell.org Subject: Re: [Haskell-cafe] Haskell newbie indentation query

Re: [Haskell-cafe] Haskell newbie indentation query.

2008-10-15 Thread Bulat Ziganshin
Hello Vivek, Wednesday, October 15, 2008, 3:39:54 PM, you wrote: i think that practical answer is suggestion to use `case` instead: case () of _ | x 5 - do abc def ... | x==5 - do ... | otherwise - do ... it's pretty common

Re: [Haskell-cafe] Haskell newbie indentation query.

2008-10-15 Thread Daniel Fischer
Am Mittwoch, 15. Oktober 2008 13:39 schrieb Ramaswamy, Vivek: Hello All~ I have just started with Haskell, and I must confess; I am in love with it. However one area that I am really confused about is indentation. Lets take a look at if-else if- else block. The way I understand it:

Re: [Haskell-cafe] Haskell newbie indentation query.

2008-10-15 Thread Jules Bean
Ramaswamy, Vivek wrote: Hello All~ I have just started with Haskell, and I must confess; I am in love with it. However one area that I am really confused about is indentation. Lets take a look at if-else if- else block. Important point 1. There are two contexts in haskell programs. Layout

[Haskell-cafe] Haskell newbie indentation query.

2008-10-15 Thread Ramaswamy, Vivek
Hello All~ I have just started with Haskell, and I must confess; I am in love with it. However one area that I am really confused about is indentation. Lets take a look at if-else if- else block. The way I understand it: {--} if something then do something 1 something2 else if nothing