Module
Node.Stream.Object
- Package
- purescript-node-stream-pipes
- Repository
- cakekindel/purescript-node-stream-pipes
#ReadResult Source
data ReadResult a
Constructors
Instances
Generic (ReadResult a) _
Functor ReadResult
(Eq a) => Eq (ReadResult a)
Show (ReadResult a)
#maybeReadResult Source
maybeReadResult :: forall a. ReadResult a -> Maybe a
#WriteResult Source
#ReadResultFFI Source
type ReadResultFFI a = { just :: a -> ReadResult a, wouldBlock :: ReadResult a }
#WriteResultFFI Source
type WriteResultFFI = { ok :: WriteResult, wouldBlock :: WriteResult }
#writeImpl Source
writeImpl :: forall s a. WriteResultFFI -> s -> a -> Effect WriteResult
#readImpl Source
readImpl :: forall s a. ReadResultFFI a -> s -> Effect (ReadResult a)
#isReadableImpl Source
isReadableImpl :: forall s. s -> Effect Boolean
#isWritableImpl Source
isWritableImpl :: forall s. s -> Effect Boolean
#isReadableEndedImpl Source
isReadableEndedImpl :: forall s. s -> Effect Boolean
#isWritableEndedImpl Source
isWritableEndedImpl :: forall s. s -> Effect Boolean
#isClosedImpl Source
isClosedImpl :: forall s. s -> Effect Boolean
#needsDrainImpl Source
needsDrainImpl :: forall s. s -> Effect Boolean
#readableLengthImpl Source
readableLengthImpl :: forall s. s -> Effect Int
#readResultFFI Source
readResultFFI :: forall a. ReadResultFFI a
#Read Source
class (Stream s) <= Read s a | s -> a where
Members
readableLength :: s -> Effect Int
isReadable :: s -> Effect Boolean
isReadableEnded :: s -> Effect Boolean
read :: s -> Effect (ReadResult a)
Instances
#unsafeCoerceWritable Source
unsafeCoerceWritable :: forall r a. Writable r -> Writable a
#unsafeCoerceReadable Source
unsafeCoerceReadable :: forall r a. Readable r -> Readable a
#unsafeCoerceTransform Source
unsafeCoerceTransform :: forall a b. Duplex -> Transform a b
#unsafeFromBufferTransform Source
unsafeFromBufferTransform :: forall a. Duplex -> Transform Buffer a
#unsafeFromStringTransform Source
unsafeFromStringTransform :: forall a. Duplex -> Transform String a
#onceAff1 Source
onceAff1 :: forall e a. EventHandle1 e a -> e -> Aff a
#readableH Source
readableH :: forall s a. Read s a => EventHandle0 s
#drainH Source
drainH :: forall s a. Write s a => EventHandle0 s
#closeH Source
closeH :: forall s. Stream s => EventHandle0 s
#endH Source
endH :: forall s a. Write s a => EventHandle0 s
#finishH Source
finishH :: forall s a. Write s a => EventHandle0 s