[Haskell-cafe] (New to Conduits) mixing lazy lists and Conduits?
Jon Fairbairn
jon.fairbairn at cl.cam.ac.uk
Thu Jun 21 09:13:21 UTC 2018
Suppose I’m writing some code using Conduits, but need to use
some old function f::[a]->[b] (defined in a library somewhere)
that transforms a lazy list.
Is there a way of turning f into a Conduit without ending up
with all of the list being in memory? ie something that looks
like
toConduit:: ([a]->[b]) -> ConduitT a b m ()
I’ve got nowhere with Hoogle or Hayoo
--
Jón Fairbairn Jon.Fairbairn at cl.cam.ac.uk
More information about the Haskell-Cafe
mailing list