How to use the sanctuary-type-classes.Chain 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-identity / test / index.js View on Github external
test ('Chain', () => {
    eq (Z.Chain.test (Identity (Useless))) (true);
  });
github sanctuary-js / sanctuary-either / test / index.js View on Github external
test ('Chain', () => {
    eq (Z.Chain.test (Left (Useless))) (true);
    eq (Z.Chain.test (Right (Useless))) (true);
  });
github sanctuary-js / sanctuary-either / test / index.js View on Github external
test ('Chain', () => {
    eq (Z.Chain.test (Left (Useless))) (true);
    eq (Z.Chain.test (Right (Useless))) (true);
  });
github sanctuary-js / sanctuary-maybe / test / index.js View on Github external
test ('Chain', () => {
    eq (Z.Chain.test (Nothing)) (true);
    eq (Z.Chain.test (Just (Useless))) (true);
  });
github sanctuary-js / sanctuary-maybe / test / index.js View on Github external
test ('Chain', () => {
    eq (Z.Chain.test (Nothing)) (true);
    eq (Z.Chain.test (Just (Useless))) (true);
  });
github fluture-js / Fluture / src / dispatchers / chain.js View on Github external
function chain$chainer(chainer, m){
  if(!Z.Chain.test(m)) throwInvalidArgument('Future.chain', 1, 'be a Chain', m);
  return Z.chain(chainer, m);
}
github fantasyland / fantasy-laws / src / Chain.js View on Github external
associativity: assert.forall3 (function(m, f, g) {
      return Z.Chain.test (m) &&
             equals (chain (g) (chain (f) (m)),
                     chain (composeK (g) (f)) (m));
    })