fp-ts-contrib
Advanced tools
Comparing version 0.1.15 to 0.1.16
@@ -16,2 +16,7 @@ # Changelog | ||
# 0.1.16 | ||
- **Polish** | ||
- add `Alternative1` instance to `TaskOption`, #62 (@pbadenski) | ||
# 0.1.15 | ||
@@ -18,0 +23,0 @@ |
/** | ||
* @since 0.1.0 | ||
*/ | ||
import { Alt1 } from "fp-ts/es6/Alt"; | ||
import { Alternative1 } from "fp-ts/es6/Alternative"; | ||
import { Task } from "fp-ts/es6/Task"; | ||
@@ -112,3 +112,5 @@ import { Monad1 } from "fp-ts/es6/Monad"; | ||
*/ | ||
export declare const taskOption: Monad1<URI> & Alt1<URI> & Filterable1<URI>; | ||
export declare const taskOption: Monad1<URI> & | ||
Alternative1<URI> & | ||
Filterable1<URI>; | ||
declare const alt: <A>( | ||
@@ -115,0 +117,0 @@ that: () => TaskOption<A> |
@@ -121,3 +121,3 @@ var __assign = (this && this.__assign) || function () { | ||
*/ | ||
export var taskOption = __assign({ URI: URI, map: T.map, of: some, ap: T.ap, chain: T.chain, alt: T.alt }, getFilterableComposition(task, option)); | ||
export var taskOption = __assign({ URI: URI, of: some, ap: T.ap, chain: T.chain, alt: T.alt, zero: T.none }, getFilterableComposition(task, option)); | ||
var _a = pipeable(taskOption), alt = _a.alt, ap = _a.ap, apFirst = _a.apFirst, apSecond = _a.apSecond, chain = _a.chain, chainFirst = _a.chainFirst, flatten = _a.flatten, map = _a.map, partition = _a.partition, partitionMap = _a.partitionMap, filter = _a.filter, filterMap = _a.filterMap, compact = _a.compact, separate = _a.separate; | ||
@@ -124,0 +124,0 @@ export { |
/** | ||
* @since 0.1.0 | ||
*/ | ||
import { Alt1 } from "fp-ts/lib/Alt"; | ||
import { Alternative1 } from "fp-ts/lib/Alternative"; | ||
import { Task } from "fp-ts/lib/Task"; | ||
@@ -112,3 +112,5 @@ import { Monad1 } from "fp-ts/lib/Monad"; | ||
*/ | ||
export declare const taskOption: Monad1<URI> & Alt1<URI> & Filterable1<URI>; | ||
export declare const taskOption: Monad1<URI> & | ||
Alternative1<URI> & | ||
Filterable1<URI>; | ||
declare const alt: <A>( | ||
@@ -115,0 +117,0 @@ that: () => TaskOption<A> |
@@ -135,3 +135,3 @@ "use strict"; | ||
*/ | ||
exports.taskOption = __assign({ URI: exports.URI, map: T.map, of: exports.some, ap: T.ap, chain: T.chain, alt: T.alt }, Filterable_1.getFilterableComposition(Task_1.task, Option_1.option)); | ||
exports.taskOption = __assign({ URI: exports.URI, of: exports.some, ap: T.ap, chain: T.chain, alt: T.alt, zero: T.none }, Filterable_1.getFilterableComposition(Task_1.task, Option_1.option)); | ||
var _a = pipeable_1.pipeable(exports.taskOption), alt = _a.alt, ap = _a.ap, apFirst = _a.apFirst, apSecond = _a.apSecond, chain = _a.chain, chainFirst = _a.chainFirst, flatten = _a.flatten, map = _a.map, partition = _a.partition, partitionMap = _a.partitionMap, filter = _a.filter, filterMap = _a.filterMap, compact = _a.compact, separate = _a.separate; | ||
@@ -138,0 +138,0 @@ exports.alt = alt; |
{ | ||
"name": "fp-ts-contrib", | ||
"version": "0.1.15", | ||
"version": "0.1.16", | ||
"description": "A community driven utility package for fp-ts", | ||
@@ -5,0 +5,0 @@ "files": [ |
278081
10797