Andrew Martin

Results 129 comments of Andrew Martin

This is no longer the official repo for `streaming`. Please continue discussion of this issue [here](https://github.com/haskell-streaming/streaming/issues/4).

This is no longer the official repo for `streaming`. Please continue discussion of this issue [here](https://github.com/haskell-streaming/streaming/issues/1).

Yeah, the main benefit is just needing fewer extensions. I'll try to get together a PR this weekend.

This is no longer the official repo for `streaming`. Please continue discussion of this issue [here](https://github.com/haskell-streaming/streaming/issues/3).

This is no longer the official repo for `streaming`. Please continue discussion of this issue [here](https://github.com/haskell-streaming/streaming/issues/2).

I like mmorph as well. It is, as you say, fundamental. Being able to open files (or any kind of resource) inside of a `Stream` is not something that I...

I just realized that Gabriel had already packaged up a variant of `Resource` into the `managed` library, which basically does what `resourcet` does except that it's much less complicated. Like...

With `managed`, you get this: ``` monomorphicReadFile :: FilePath -> Stream (Of String) Managed () monomorphicReadFile fp = lift (managed (withFile fp ReadMode)) >>= S.fromHandle mtlReadFile :: MonadManaged m =>...

I don't mind the lack of prompt finalization either, and yeah, it does let you avoid the `withFile` annoyance. (As a side of note, in the docs for `writeFile`, where...