shell-conduit 4.1 → 4.2
raw patch · 2 files changed
+7/−2 lines, 2 files
Files
shell-conduit.cabal view
@@ -1,5 +1,5 @@ name: shell-conduit-version: 4.1+version: 4.2 synopsis: Write shell scripts with Conduit description: Write shell scripts with Conduit. See "Data.Conduit.Shell" for documentation. license: BSD3
src/Data/Conduit/Shell/Process.hs view
@@ -11,6 +11,7 @@ run -- * Running processes ,conduit+ ,conduitEither ,Data.Conduit.Shell.Process.shell ,Data.Conduit.Shell.Process.proc ,($|)@@ -155,8 +156,12 @@ infixl 0 $| -- | Lift a conduit into a segment.-conduit :: (a ~ ByteString,ToChunk b,m ~ IO) => ConduitM a b m r -> Segment r+conduit :: (a ~ ByteString,m ~ IO) => ConduitM a ByteString m r -> Segment r conduit f = SegmentConduit (f `fuseUpstream` CL.map toChunk)++-- | Lift a conduit into a segment, which can yield stderr.+conduitEither :: (a ~ ByteString,m ~ IO) => ConduitM a (Either ByteString ByteString) m r -> Segment r+conduitEither f = SegmentConduit (f `fuseUpstream` CL.map toChunk) -- | Lift a process into a segment. liftProcess :: CreateProcess -> Segment ()