Skip to content

Commit

Permalink
version 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti committed Dec 11, 2019
1 parent 60719ba commit fb6fbcb
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions docs/modules/ReaderTaskEither.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ Added in v2.0.4
```ts
export function fold<R, E, A, B>(
onLeft: (e: E) => Reader<R, Task<B>>,
onRight: (a: A) => Reader<R, Task<B>>
): (ma: ReaderTaskEither<R, E, A>) => Reader<R, Task<B>> { ... }
onLeft: (e: E) => ReaderTask<R, B>,
onRight: (a: A) => ReaderTask<R, B>
): (ma: ReaderTaskEither<R, E, A>) => ReaderTask<R, B> { ... }
```
Added in v2.0.0
Expand Down Expand Up @@ -240,8 +240,8 @@ Added in v2.0.0
```ts
export function getOrElse<R, E, A>(
onLeft: (e: E) => Reader<R, Task<A>>
): (ma: ReaderTaskEither<R, E, A>) => Reader<R, Task<A>> { ... }
onLeft: (e: E) => ReaderTask<R, A>
): (ma: ReaderTaskEither<R, E, A>) => ReaderTask<R, A> { ... }
```
Added in v2.0.0
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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": "2.2.0",
"version": "2.3.0",
"description": "Functional programming in TypeScript",
"files": [
"lib",
Expand Down
14 changes: 7 additions & 7 deletions src/ReaderTaskEither.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ import { pipe, pipeable } from './pipeable'
import { getSemigroup as getReaderSemigroup, Reader } from './Reader'
import { ReaderEither } from './ReaderEither'
import { getReaderM } from './ReaderT'
import { readerTask, ReaderTask } from './ReaderTask'
import { Semigroup } from './Semigroup'
import { Task } from './Task'
import * as TE from './TaskEither'
import { getValidationM } from './ValidationT'

import TaskEither = TE.TaskEither
import { readerTask } from './ReaderTask'
import { getValidationM } from './ValidationT'

const T = getReaderM(TE.taskEither)

Expand Down Expand Up @@ -129,9 +129,9 @@ export function leftIO<R, E = never, A = never>(me: IO<E>): ReaderTaskEither<R,
* @since 2.0.0
*/
export function fold<R, E, A, B>(
onLeft: (e: E) => Reader<R, Task<B>>,
onRight: (a: A) => Reader<R, Task<B>>
): (ma: ReaderTaskEither<R, E, A>) => Reader<R, Task<B>> {
onLeft: (e: E) => ReaderTask<R, B>,
onRight: (a: A) => ReaderTask<R, B>
): (ma: ReaderTaskEither<R, E, A>) => ReaderTask<R, B> {
return ma => r =>
pipe(
ma(r),
Expand All @@ -146,8 +146,8 @@ export function fold<R, E, A, B>(
* @since 2.0.0
*/
export function getOrElse<R, E, A>(
onLeft: (e: E) => Reader<R, Task<A>>
): (ma: ReaderTaskEither<R, E, A>) => Reader<R, Task<A>> {
onLeft: (e: E) => ReaderTask<R, A>
): (ma: ReaderTaskEither<R, E, A>) => ReaderTask<R, A> {
return ma => r => TE.getOrElse<E, A>(e => onLeft(e)(r))(ma(r))
}

Expand Down

0 comments on commit fb6fbcb

Please sign in to comment.