Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

Commit 0af1b14

Browse files
committed
Docs and README
1 parent 9342917 commit 0af1b14

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,12 @@
55
[![Pursuit](https://pursuit.purescript.org/packages/purescript-node-streams-aff/badge)](https://pursuit.purescript.org/packages/purescript-node-streams-aff)
66

77
Asynchronous PureScript API for the [*Node.js* `stream` API](https://nodejs.org/docs/latest/api/stream.html).
8+
9+
## Prior art
10+
11+
* https://pursuit.purescript.org/packages/purescript-node-fs-aff/docs/Node.FS.Aff
12+
* https://pursuit.purescript.org/packages/purescript-node-fs/docs/Node.FS.Async
13+
* https://pursuit.purescript.org/packages/purescript-node-coroutines
14+
* https://pursuit.purescript.org/packages/purescript-idiomatic-node-stream
15+
* https://dgopsq.space/blog/reading-from-stdin-using-purescript
16+
* https://github.com/purescript-contrib/pulp/blob/master/src/Pulp/System/Stream.purs

src/Node/Stream/Aff.purs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
-- | Asynchronous I/O with *Node.js* streams.
22
-- |
3+
-- | Open file streams with
4+
-- | [__Node.FS.Stream__](https://pursuit.purescript.org/packages/purescript-node-fs/docs/Node.FS.Stream).
5+
-- |
6+
-- | Open process streams with
7+
-- | [__Node.Process__](https://pursuit.purescript.org/packages/purescript-node-process/docs/Node.Process).
8+
-- |
39
-- | ## Reading
410
-- |
511
-- | #### Implementation
@@ -101,9 +107,10 @@ import Node.Stream.Aff.Internal (onceDrain, onceEnd, onceError, onceReadable)
101107
-- | Wait until there is some data available from the stream.
102108
-- |
103109
-- | This function is not currently very useful because there is no way to
104-
-- | know when the stream has reached its end, and if this
110+
-- | know when a stream has already reached its end, and if this
105111
-- | function is called after the stream has ended then the call will
106-
-- | never complete.
112+
-- | never complete. So we can `readSome` one time and it will complete, but
113+
-- | then we don’t know if the next call to `readSome` will complete.
107114
readSome
108115
:: forall m r
109116
. MonadAff m

0 commit comments

Comments
 (0)