Skip to content

updated docs, fixed unused type variable warnings #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 5, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/Node/Stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ Write a chunk to a writable stream.
#### `writeString`

``` purescript
writeString :: forall r eff a. Writable r eff String -> Encoding -> String -> Eff eff Unit -> Eff eff Boolean
writeString :: forall r eff. Writable r eff String -> Encoding -> String -> Eff eff Unit -> Eff eff Boolean
```

Write a string in the specified encoding to a writable stream.
Expand Down
6 changes: 3 additions & 3 deletions src/Node/Stream.purs
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ foreign import pipe :: forall r w eff a. Readable w eff a -> Writable r eff a ->
-- | Write a chunk to a writable stream.
foreign import write :: forall r eff a. Writable r eff String -> a -> Eff eff Unit -> Eff eff Boolean

foreign import writeStringImpl :: forall r eff a. Writable r eff String -> String -> String -> Eff eff Unit -> Eff eff Boolean
foreign import writeStringImpl :: forall r eff. Writable r eff String -> String -> String -> Eff eff Unit -> Eff eff Boolean

-- | Write a string in the specified encoding to a writable stream.
writeString :: forall r eff a. Writable r eff String -> Encoding -> String -> Eff eff Unit -> Eff eff Boolean
writeString :: forall r eff. Writable r eff String -> Encoding -> String -> Eff eff Unit -> Eff eff Boolean
writeString w enc = writeStringImpl w (show enc)

-- | Force buffering of writes.
Expand All @@ -106,4 +106,4 @@ setDefaultEncoding :: forall r eff. Writable r eff String -> Encoding -> Eff eff
setDefaultEncoding r enc = setDefaultEncodingImpl r (show enc)

-- | End writing data to the stream.
foreign import end :: forall r eff a. Writable r eff a -> Eff eff Unit -> Eff eff Unit
foreign import end :: forall r eff a. Writable r eff a -> Eff eff Unit -> Eff eff Unit