By the way, what is the advantage of using iteratees here? For my
testing, I just used:
main = printit . freqs . B.words = B.readFile words
(where 'printit' writes some data to stdout just to make sure stuff is
evaluated, and you've already seen some 'freqs' examples)
I have a bunch of old
Hi Ketil,
By the way, what is the advantage of using iteratees here? For my
testing, I just used:
My initial move to iteratees was more a clutch call I made when I was still
using bytestring-trie, and was having immense memory consumption problems.
bytestring-trie uses strict byte strings as
At Thu, 02 Jun 2011 13:52:52 +0200,
Ketil Malde wrote:
I have a bunch of old code, parsers etc, which are based on the
'readFile' paradigm:
type Str = Data.ByteString.Lazy.Char8.ByteString -- usually
decodeFoo :: Str - Foo
encodeFoo :: Foo - Str
readFoo = decodeFoo . readFile
On 6/2/11 8:59 AM, Aleksandar Dimitrov wrote:
Hi Ketil,
By the way, what is the advantage of using iteratees here? For my
testing, I just used:
My initial move to iteratees was more a clutch call I made when I was still
using bytestring-trie, and was having immense memory consumption