How to use the sanctuary-type-classes.Category function in sanctuary-type-classes

To help you get started, we’ve selected a few sanctuary-type-classes examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sanctuary-js / sanctuary-maybe / test / index.js View on Github external
test ('Category', () => {
    eq (Z.Category.test (Nothing)) (false);
    eq (Z.Category.test (Just ([]))) (false);
  });
github sanctuary-js / sanctuary-either / test / index.js View on Github external
test ('Category', () => {
    eq (Z.Category.test (Left ([]))) (false);
    eq (Z.Category.test (Right ([]))) (false);
  });
github sanctuary-js / sanctuary-maybe / test / index.js View on Github external
test ('Category', () => {
    eq (Z.Category.test (Nothing)) (false);
    eq (Z.Category.test (Just ([]))) (false);
  });
github sanctuary-js / sanctuary-either / test / index.js View on Github external
test ('Category', () => {
    eq (Z.Category.test (Left ([]))) (false);
    eq (Z.Category.test (Right ([]))) (false);
  });
github sanctuary-js / sanctuary-identity / test / index.js View on Github external
test ('Category', () => {
    eq (Z.Category.test (Identity ([]))) (false);
  });
github fantasyland / fantasy-laws / src / Category.js View on Github external
leftIdentity: assert.forall2 (function(C, a) {
      return Z.Category.test (a) &&
             equals (compose (a) (id (C)),
                     a);
    }),
github fantasyland / fantasy-laws / src / Category.js View on Github external
rightIdentity: assert.forall2 (function(C, a) {
      return Z.Category.test (a) &&
             equals (compose (id (C)) (a),
                     a);
    })