Skip to content

Commit 8c69d2b

Browse files
committed
loosen typing of two event listener functions
The functions in question apply to events emitted by both Readable and Writable streams. They were typed so as to only apply to Readable streams.
1 parent 5444a74 commit 8c69d2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Node/Stream.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,14 +207,14 @@ foreign import onFinish
207207
-- | Listen for `close` events.
208208
foreign import onClose
209209
:: forall w eff
210-
. Readable w eff
210+
. Stream w eff
211211
-> Eff eff Unit
212212
-> Eff eff Unit
213213

214214
-- | Listen for `error` events.
215215
foreign import onError
216216
:: forall w eff
217-
. Readable w eff
217+
. Stream w eff
218218
-> (Error -> Eff eff Unit)
219219
-> Eff eff Unit
220220

0 commit comments

Comments
 (0)