How to use the sanctuary-type-classes.Applicative 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-either / test / index.js View on Github external
test ('Applicative', () => {
    eq (Z.Applicative.test (Left (Useless))) (true);
    eq (Z.Applicative.test (Right (Useless))) (true);
  });
github sanctuary-js / sanctuary-maybe / test / index.js View on Github external
test ('Applicative', () => {
    eq (Z.Applicative.test (Nothing)) (true);
    eq (Z.Applicative.test (Just (Useless))) (true);
  });
github sanctuary-js / sanctuary-either / test / index.js View on Github external
test ('Applicative', () => {
    eq (Z.Applicative.test (Left (Useless))) (true);
    eq (Z.Applicative.test (Right (Useless))) (true);
  });
github sanctuary-js / sanctuary-maybe / test / index.js View on Github external
test ('Applicative', () => {
    eq (Z.Applicative.test (Nothing)) (true);
    eq (Z.Applicative.test (Just (Useless))) (true);
  });
github sanctuary-js / sanctuary-identity / test / index.js View on Github external
test ('Applicative', () => {
    eq (Z.Applicative.test (Identity (Useless))) (true);
  });
github fantasyland / fantasy-laws / src / Applicative.js View on Github external
interchange: assert.forall2 (function(u, y) {
      return Z.Applicative.test (u) &&
             equals (ap (u) (pure (y)),
                     ap (pure ($ (y))) (u));
    })
github fantasyland / fantasy-laws / src / Applicative.js View on Github external
identity: assert.forall1 (function(v) {
      return Z.Applicative.test (v) &&
             equals (ap (pure (identity)) (v),
                     v);
    }),