[Haskell-cafe] Conduits and Unix Pipes
Clark Gaebel
cgaebel at uwaterloo.ca
Sat Apr 7 19:53:41 CEST 2012
Well look at that. Thanks!
On Sat, Apr 7, 2012 at 1:49 PM, Bin Jin <bjin1990 at gmail.com> wrote:
> I think process-conduit is what you are looking for.
> On Apr 8, 2012 1:22 AM, "Clark Gaebel" <cgaebel at uwaterloo.ca> wrote:
>
>> Has anyone built an adapter between unix pipes and conduits? Something
>> like:
>>
>> upipe2conduit :: String -> Conduit Char Char
>>
>> let someLines = "hello\nworld"
>> nLines <- (read . runResourceT $ sourceList someLines $= upipe2conduit
>> "wc -l" $$ consume) :: Integer
>>
>> If this has been done, is it on hackage?
>>
>> Thanks,
>> - clark
>>
>> _______________________________________________
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120407/7fd1d3e1/attachment.htm>
More information about the Haskell-Cafe
mailing list