UNPKG

@dillonkearns/elm-graphql

Version:

<img src="https://cdn.jsdelivr.net/gh/martimatix/logo-graphqelm/logo.svg" alt="dillonearns/elm-graphql logo" width="40%" align="right">

32 lines (30 loc) 537 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.invert = invert; var orderingSetoid = exports.orderingSetoid = { equals: function equals(a, b) { return a === b; } }; var orderingSemigroup = exports.orderingSemigroup = { concat: function concat(a, b) { if (a === 'LT') { return 'LT'; } if (a === 'GT') { return 'GT'; } return b; } }; function invert(a) { if (a === 'LT') { return 'GT'; } if (a === 'GT') { return 'LT'; } return 'EQ'; }