How to use the @effectful/core.config function in @effectful/core

To help you get started, we’ve selected a few @effectful/core 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 awto / effectfuljs / packages / es / options.js View on Github external
/* eslint-disable no-console */
const C = require("@effectful/core");
const config = C.config;
const Policy = C.Policy;
const T = C.Transform;
const Tag = C.Tag;
const Kit = C.Kit;

const rebind = {
  all: {
    presetsImportPattern: false,
    directives: false,
    bindCalls: null,
    reuseImports: false
  },
  effectful: {
    scopeContext: true,
    contextMethodOps: true,
    markRepeat: false,
github awto / effectfuljs / packages / js / options.js View on Github external
module.exports = function jsProfile(pOpts = {}) {
  const opts = Object.assign(
    {},
    C.config,
    { preset: "@effectful/js", modules: "esDefault" },
    pOpts
  );
  return {
    syntaxPlugins: [],
    options: opts,
    main: T.run
  };
};

@effectful/core

Embedding effects in JavaScript using Monads

MIT
Latest version published 3 months ago

Package Health Score

59 / 100
Full package analysis