úÎ-Ã*¯     NoneMake the current " 7-bit byte") the most significant byte in the header KTest wether or not a byte is the most significant byte of a special header  (i.e. 8th bit = 1, rest = 0) KTest wether or not a byte is the most significant byte (i.e. the last byte  of a header block)  A decode  ByteString' sink which returns the current header  None  None ! stream "0Get the next package from the stream (whether it' s a single ! or  a list)  #$ %&'()*+,-"./0 #$ %&'()*+,-" #$ %&'(+*),-"./0 experimental Nils Schweinsberg <mail@nils.cc>None To define your own  / instances, reuse the instances for strict and # lazy bytestrings, for example for  Data.Text: T instance (Monad m, Sendable m Data.ByteString.ByteString) => Sendable m Text where : encode = Data.Conduit.List.map encodeUtf8 =$= encode  ; is called before sending out conduit block elements. Each , element has to be encoded either as strict 1 or as lazy !  with a known length. *Newtype for properly encoded bytestrings. @ is used after receiving the individual conduit block elements. . It is therefore not necessary to reuse other  instances (in  contrast to   instance definitions). KClose current stream. In order to guarantee process resource finalization,  you must use this operator after using . 4Receive the next conduit block. Might fail with the  7 exception if used on a stream that has been closed by . Send one conduit block. LFor bi-directional conversations you sometimes need the sink of the current  stream, since you can't use  within another . A simple example:   receive streamData $ ( myConduit =$ streamSink streamData Note, that each 2 marks its own conduit block. If you want to sink  single block elements, use  instead. =Sink single elements inside the same conduit block. Example: 8 receive streamData $ withElementSink $ \sinkElem -> do " yield singleElem =$ sinkElem ' mapM_ yield moreElems =$ sinkElem 2AInstance for lazy bytestrings which calculates the length of the  ! before calling the &(Int, Data.ByteString.Lazy.ByteString)  instance of  . 3GInstance for lazy bytestrings with a known length, using a specialized  version of  . 4@Instance for strict bytestrings, using a specialized version of  . 5For lazy bytestrings,  is the identity conduit. 65Instance for strict bytestrings. Note that this uses 7 for the N conversion from lazy bytestrings, which is rather expensive. Try to use lazy  bytestrings if possible.  8 9:;23456      8 9:;23456<      !"#$%&'()%*+,-./012345&6(789:;&<=>?@Aconduit-network-stream-0.2&Data.Conduit.Network.Stream.ExceptionsData.Conduit.Network.Stream"Data.Conduit.Network.Stream.Header$Data.Conduit.Network.Stream.InternalHeader EndOfInput InvalidHeaderVarInt ConduitEND ConduitSTARTStreamException ClosedStreamUnexpectedHeader StreamDataSendableencode EncodedBS Receivabledecode toStreamData closeStreamreceivesend streamSinkwithElementSinkmkMSBisSpecialHeaderMSBisMSB decodeHeaderspecialHeaderMSBvarint fromVarint condStartcondEnd encodeHeader$fExceptionStreamExceptionStreamTbytestring-0.10.0.2Data.ByteString.Lazy.Internal ByteStringdecodeCondBlock stream_basestreamDataSourcestreamDataSink StreamSource ClosedSource OpenSource NewSourceencodeBS encodeLazyBS$fMonadResourceStreamT$fMonadThrowStreamT$fMonadTransStreamTData.ByteString.Internal$fSendablemByteString$fSendablem(,)$fSendablemByteString0$fReceivableByteStringm$fReceivableByteStringm0Data.ByteString.LazytoStrict sinkCondStart sinkCondEnd sinkCondElems