Re: [Haskell-cafe] I would like a clarification about Enumerators and Iteratees, please :)

2012-10-16 Thread Gregory Collins
You have a space leak in "countCharBS". Put a bang pattern on your accumulator. On Tue, Oct 16, 2012 at 2:46 PM, Alfredo Di Napoli < alfredo.dinap...@gmail.com> wrote: > Hi guys, > > I've started playing with Iteratee and Enumerators: very cool and > addictive stuff. > > I have wrote this simple

[Haskell-cafe] I would like a clarification about Enumerators and Iteratees, please :)

2012-10-16 Thread Alfredo Di Napoli
Hi guys, I've started playing with Iteratee and Enumerators: very cool and addictive stuff. I have wrote this simple code: https://gist.github.com/3899017 In a nutshell, it gives back the number of occurences for a single char in case the argument passed from the command line is a single char,