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 inden

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 ha

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

2006-09-21 Thread Henning Thielemann
On Thu, 21 Sep 2006, Bruno Martínez wrote: > > getList :: IO [Char] > > getList = take5 `fmap` getContents -- a thin IO "skin" > > > > take5 :: [Char] -> [Char] > > take5 = take 5 . filter (`elem` ['a'..'e']) -- the actual worker > > The problem is that getContents 'eats' stdin,