[Haskell-cafe] conduit: Finalize field in PipeM

Paolo Capriotti p.capriotti at gmail.com
Thu May 3 22:11:05 CEST 2012


Hi,
I'm trying to write a function to convert a conduit to a Pipe (from
pipes-core), and I'm having trouble understanding why the `Finalize`
field in a `PipeM` constructor returns `r`. This makes it impossible
to create it from the corresponding `M` constructor in pipes-core,
since `M` includes an exception handler which is not guaranteed to run
fully, hence may not provide a return value. `HaveOutput` presents a
similar problem.



More information about the Haskell-Cafe mailing list