Re: [Haskell-cafe] [Newbie] What to improve in my code

2010-07-19 Thread Dougal Stanton
On Mon, Jul 19, 2010 at 9:24 AM, David Virebayre wrote: > A minor point: instead of removing the punctuation, you maybe should > convert it to whitespace. > > Otherwise in texts like "there was a quick,brown fox" (notice the > missing space after the comma) you'll have the word "quickbrown" > ins

Re: [Haskell-cafe] [Newbie] What to improve in my code

2010-07-19 Thread David Virebayre
On Tue, Jul 13, 2010 at 11:49 PM, Frank1981 wrote: > > First of all: I'm not sure if this question is allowed here. If not, I > apologize > > I'm trying to solve the following problem: For each word in a text find the > number of occurences for each unique word in the text. > > i've come up with t

Re: [Haskell-cafe] [Newbie] What to improve in my code

2010-07-19 Thread Ketil Malde
Daniel Fischer writes: >> First of all: I'm not sure if this question is allowed here. If not, I >> apologize You might want to check out the haskell-beginners list, but IMO most questions are okay to post here. Just a couple of style issues Daniel didn't mention: >> process :: [Char] -> [Stri

Re: [Haskell-cafe] [Newbie] What to improve in my code

2010-07-13 Thread Daniel Fischer
On Tuesday 13 July 2010 23:49:45, Frank1981 wrote: > First of all: I'm not sure if this question is allowed here. If not, I > apologize > > I'm trying to solve the following problem: For each word in a text find > the number of occurences for each unique word in the text. > > i've come up with the

[Haskell-cafe] [Newbie] What to improve in my code

2010-07-13 Thread Frank1981
First of all: I'm not sure if this question is allowed here. If not, I apologize I'm trying to solve the following problem: For each word in a text find the number of occurences for each unique word in the text. i've come up with the following steps to solve this: * remove all punctuation excep