Hi,

Examples are very helpful to me too -- thank you for sharing. I'm especially
curious to see if there are any examples that allow you to use or convert
non-iteratee-based functions. I have only just begun reading about iteratees
and might be missing the point, but it seems like many of the examples so
far rely on explicit recursion or special functions from one of the iteratee
modules.

Is there a way to take a simple function (example below) and use an
enumerator to feed it a ByteString from a file, or do you have to write
functions explicitly to work with a given iteratee implementation?

    import qualified Data.ByteString.Char8 as B
    sortLines = B.unlines . sort . B.lines

Thanks!
Eric



On Fri, Jun 24, 2011 at 7:24 AM, Henk-Jan van Tuyl <hjgt...@chello.nl>wrote:

> On Fri, 24 Jun 2011 15:11:59 +0200, David Place <d...@vidplace.com> wrote:
>
>  Hi,
>>
>> I've been trying to learn Iteratee IO.  I've made some progress by
>> studying John Millikin's examples in the source of the enumerator package.
>>
>> I was surprised how confusing I found the tutorials that are available.  I
>> think that it is primarily because of the lack of concrete examples.  It
>> would be great if we could accumulate a collection of small concrete
>> programs like John's wc.hs which show various uses of Data.Enumerator.
>>
>> Here's a little program I wrote to find the longest run of same characters
>> in a file.
>>
>>  http://hpaste.org/48255
>>>
>>
>> Does anyone else have little examples like this that use Iteratee IO?
>>
>
> Try finding packages that depend on the enumerator/iteratee packages at
>  http://bifunctor.homelinux.**net/~roel/hackage/packages/**
> archive/pkg-list.html<http://bifunctor.homelinux.net/%7Eroel/hackage/packages/archive/pkg-list.html>
> (which is down at the moment).
>
> Regards,
> Henk-Jan van Tuyl
>
>
> --
> http://Van.Tuyl.eu/
> http://members.chello.nl/**hjgtuyl/tourdemonad.html<http://members.chello.nl/hjgtuyl/tourdemonad.html>
> --
>
>
> ______________________________**_________________
> Haskell-Cafe mailing list
> Haskell-Cafe@haskell.org
> http://www.haskell.org/**mailman/listinfo/haskell-cafe<http://www.haskell.org/mailman/listinfo/haskell-cafe>
>
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to