@morphic-ts/eq-interpreters
Advanced tools
Comparing version 2.0.0-alpha.5 to 2.0.0-alpha.6
import { getEq as OgetEq } from 'fp-ts/es6/Option'; | ||
import { getEq as AgetEq } from 'fp-ts/es6/Array'; | ||
import { getEq as NEAgetEq } from 'fp-ts/es6/NonEmptyArray'; | ||
import { getEq as EgetEq } from 'fp-ts/es6/Either'; | ||
@@ -22,2 +23,3 @@ import { eq, eqNumber, eqString, eqBoolean, eqStrict } from 'fp-ts/es6/Eq'; | ||
array: (getType, config) => env => new EqType(eqApplyConfig(config)(AgetEq(getType(env).eq), env)), | ||
nonEmptyArray: (getType, config) => env => new EqType(eqApplyConfig(config)(NEAgetEq(getType(env).eq), env)), | ||
uuid: config => env => new EqType(eqApplyConfig(config)(eqString, env)), | ||
@@ -24,0 +26,0 @@ either: (e, a, config) => env => new EqType(eqApplyConfig(config)(EgetEq(e(env).eq, a(env).eq), env)), |
@@ -6,2 +6,3 @@ "use strict"; | ||
var Array_1 = require("fp-ts/lib/Array"); | ||
var NonEmptyArray_1 = require("fp-ts/lib/NonEmptyArray"); | ||
var Either_1 = require("fp-ts/lib/Either"); | ||
@@ -28,2 +29,3 @@ var Eq_1 = require("fp-ts/lib/Eq"); | ||
array: function (getType, config) { return function (env) { return new hkt_1.EqType(config_1.eqApplyConfig(config)(Array_1.getEq(getType(env).eq), env)); }; }, | ||
nonEmptyArray: function (getType, config) { return function (env) { return new hkt_1.EqType(config_1.eqApplyConfig(config)(NonEmptyArray_1.getEq(getType(env).eq), env)); }; }, | ||
uuid: function (config) { return function (env) { return new hkt_1.EqType(config_1.eqApplyConfig(config)(Eq_1.eqString, env)); }; }, | ||
@@ -30,0 +32,0 @@ either: function (e, a, config) { return function (env) { return new hkt_1.EqType(config_1.eqApplyConfig(config)(Either_1.getEq(e(env).eq, a(env).eq), env)); }; }, |
{ | ||
"name": "@morphic-ts/eq-interpreters", | ||
"version": "2.0.0-alpha.5", | ||
"version": "2.0.0-alpha.6", | ||
"description": "Morphic Eq (fp-ts) package for equality", | ||
@@ -24,9 +24,9 @@ "author": "Stéphane Le Dorze <stephane.ledorze@gmail.com>", | ||
"dependencies": { | ||
"@morphic-ts/algebras": "^2.0.0-alpha.4", | ||
"@morphic-ts/algebras": "^2.0.0-alpha.5", | ||
"@morphic-ts/common": "^2.0.0-alpha.3", | ||
"@morphic-ts/model-algebras": "^2.0.0-alpha.4", | ||
"@morphic-ts/model-algebras": "^2.0.0-alpha.5", | ||
"fast-equals": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"@morphic-ts/summoners": "^2.0.0-alpha.2", | ||
"@morphic-ts/summoners": "^2.0.0-alpha.3", | ||
"fp-ts": "^2.5.3", | ||
@@ -73,3 +73,3 @@ "io-ts": "^2.1.3", | ||
}, | ||
"gitHead": "d3fd5d7c49d9f836900d7fd3b500c29e3f622f4d" | ||
"gitHead": "3623b3382171aa35472b1e028a176f5796dab1e7" | ||
} |
33132
721