Permalink
Browse files

(fix) Fixes setoid given the new Core.FL module

  • Loading branch information...
robotlolita committed Oct 16, 2016
1 parent 8e1b27e commit d761107a0f7847b3ae23800c3806cde0133a3e84
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/adt/setoid.js
View
@@ -9,7 +9,7 @@
// --[ Dependencies ]---------------------------------------------------
const assertType = require('folktale/helpers/assertType');
const { equals:flEquals } = require('folktale/core/fantasy-land');
const flEquals = require('folktale/core/fantasy-land/equals');
const fl = require('folktale/helpers/fantasy-land');
const provideAliases = require('folktale/helpers/provide-fantasy-land-aliases');
const { tagSymbol, typeSymbol } = require('./data');
@@ -354,7 +354,7 @@ const createDerivation = (valuesEqual) => {
const leftSetoid = isSetoid(a);
const rightSetoid = isSetoid(b);
if (leftSetoid) {
if (rightSetoid) return flEquals(b, a);
if (rightSetoid) return flEquals(a, b);
else return false;
}

0 comments on commit d761107

Please sign in to comment.