Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
(fix) Fixes setoid given the new Core.FL module
  • Loading branch information
robotlolita committed Jan 7, 2017
1 parent 8e1b27e commit d761107
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/adt/setoid.js
Expand Up @@ -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');
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit d761107

Please sign in to comment.