Changes between Version 2 and Version 3 of coroutine-iteratee
- Timestamp:
- 11/28/10 19:22:32 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
coroutine-iteratee
v2 v3 3 3 The coroutine-iteratee package can be used as a bridge between the [http://hackage.haskell.org/package/iteratee iteratee] and [wiki:monad-coroutine] packages. It provides two-way conversion functions between an Iteratee and an Await-suspending coroutine, and also between an Enumerator and a Yield-suspending coroutine. 4 4 5 The function signatures are compatible with the [wiki:coroutine-enumerator] package, so the two packages can be 6 combined into a bridge between the existing enumerator-based and iteratee-based libraries: 5 The function signatures are compatible with the [wiki:coroutine-enumerator] package, so the two packages can be combined into a bridge between the existing enumerator-based and iteratee-based libraries: 7 6 8 7 {{{ … … 27 26 }}} 28 27 29 Here's an example that uses `enumInflate` from the (iteratee-based) package `iteratee-compress`, together with the 30 enumerator-based function `iterHandle`, to build an iteratee that writes data into a compressed file: 28 Here's an example that uses `enumInflate` from the (iteratee-based) package `iteratee-compress`, together with the enumerator-based function `iterHandle`, to build an iteratee that writes data into a compressed file: 31 29 32 30 {{{
