Skip to content

Commit

Permalink
Bug Fix: fix Reader.of definition
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti committed Jun 24, 2019
1 parent dea0edb commit 763e868
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
**Note**: Gaps between patch versions are faulty/broken releases. **Note**: A feature tagged as Experimental is in a
high state of flux, you're at risk of it changing without notice.

# 1.19.2

- **Bug Fix**
- fix `Reader.of` definition (@gcanti)

# 1.19.1

- **Bug Fix**
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/Reader.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const URI = ...
**Signature**

```ts
export const of: <A>(a: A) => Reader<unknown, A> = ...
export const of: <R, A>(a: A) => Reader<R, A> = ...
```

Added in v1.19.0
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fp-ts",
"version": "1.19.1",
"version": "1.19.2",
"description": "Functional programming in TypeScript",
"files": [
"lib",
Expand Down
2 changes: 1 addition & 1 deletion src/Reader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const reader: Monad2<URI> & Profunctor2<URI> & Category2<URI> & Strong2<U
/**
* @since 1.19.0
*/
export const of: <A>(a: A) => Reader<unknown, A> = reader.of
export const of: <R, A>(a: A) => Reader<R, A> = reader.of

const { ap, apFirst, apSecond, chain, chainFirst, compose, flatten, map, promap } = pipeable(reader)

Expand Down

0 comments on commit 763e868

Please sign in to comment.