[Haskell-cafe] Re: [newbie] How to test this function?

2006-09-23 Thread Benjamin Franksen
Bruno Martínez [EMAIL PROTECTED] writes: On Thu, 21 Sep 2006 15:12:07 -0300, Benjamin Franksen [EMAIL PROTECTED] wrote: OK. Thanks. I didn't find that one because it's not offered as an identation option in emacs haskell mode. Emacs is evil! David House wrote: I'll ignore the

[Haskell-cafe] Re: [newbie] How to test this function?

2006-09-23 Thread Stefan Monnier
First, how do I fix the identation of the if then else? getList = find 5 where find 0 = return [] find n = do ch - getChar if ch `elem` ['a'..'e'] then do tl - find (n-1) return (ch : tl) else find n OK. Thanks. I didn't find that one because it's not offered as an identation option

[Haskell-cafe] Re: [newbie] How to test this function?

2006-09-23 Thread Stefan Monnier
For that one, if it doesn't get mended for long enough, Haskell' might accept the present layout. http://hackage.haskell.org/trac/haskell-prime/wiki/DoAndIfThenElse Hmm... the bug in haskell-mode has been known for almost a year now. So you're saying that I should just wait even more and it'll

[Haskell-cafe] Re: [newbie] How to test this function?

2006-09-22 Thread Jón Fairbairn
Bruno Martínez [EMAIL PROTECTED] writes: On Thu, 21 Sep 2006 15:12:07 -0300, Benjamin Franksen [EMAIL PROTECTED] wrote: OK. Thanks. I didn't find that one because it's not offered as an identation option in emacs haskell mode. Emacs is evil! That's a great exaggeration I'm open

Re: [Haskell-cafe] Re: [newbie] How to test this function?

2006-09-22 Thread Johan Tibell
If there's a problem with haskell emacs mode, it seems very likely that if you ask the maintainer nicely, he'll do something about it. See http://www.iro.umontreal.ca/~monnier/elisp/#haskell-mode I asked Stefan a while ago: I like your Emacs mode but it behaves a bit oddly when trying to

[Haskell-cafe] Re: [newbie] How to test this function?

2006-09-22 Thread Jón Fairbairn
Johan Tibell [EMAIL PROTECTED] writes: If there's a problem with haskell emacs mode, it seems very likely that if you ask the maintainer nicely, he'll do something about it. See http://www.iro.umontreal.ca/~monnier/elisp/#haskell-mode I asked Stefan a while ago: I like your Emacs

[Haskell-cafe] Re: [newbie] How to test this function?

2006-09-21 Thread Bruno Martínez
On Thu, 21 Sep 2006 01:52:38 -0300, Donald Bruce Stewart [EMAIL PROTECTED] wrote: First, how do I fix the identation of the if then else? getList = find 5 where find 0 = return [] find n = do ch - getChar if ch `elem` ['a'..'e'] then do

[Haskell-cafe] Re: [newbie] How to test this function?

2006-09-21 Thread Benjamin Franksen
Bruno Martínez wrote: On Thu, 21 Sep 2006 01:52:38 -0300, Donald Bruce Stewart [EMAIL PROTECTED] wrote: First, how do I fix the identation of the if then else? getList = find 5 where find 0 = return [] find n = do ch - getChar if ch `elem` ['a'..'e']

Re: [Haskell-cafe] Re: [newbie] How to test this function?

2006-09-21 Thread David House
On 21/09/06, Benjamin Franksen [EMAIL PROTECTED] wrote: Emacs is evil! I'll ignore the throwaway flaimbait there ;) It also inserts random tab characters into your code just to save a few space bytes. Tends to completely trash indentation e.g. when pasting code into mails etc. Not once

[Haskell-cafe] Re: [newbie] How to test this function?

2006-09-21 Thread Bruno Martínez
On Thu, 21 Sep 2006 15:12:07 -0300, Benjamin Franksen [EMAIL PROTECTED] wrote: OK. Thanks. I didn't find that one because it's not offered as an identation option in emacs haskell mode. Emacs is evil! I'm open to alternatives. I use Windows, so went out of the way to have emacs.