UNPKG

648 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports._left = exports._right = void 0;
4/**
5 * @since 1.6.0
6 */
7var Either_1 = require("fp-ts/lib/Either");
8var Option_1 = require("fp-ts/lib/Option");
9var _1 = require(".");
10var r = new _1.Prism(Option_1.fromEither, Either_1.right);
11/**
12 * @category constructor
13 * @since 1.6.0
14 */
15var _right = function () { return r; };
16exports._right = _right;
17var l = new _1.Prism((0, Either_1.fold)(Option_1.some, function () { return Option_1.none; }), Either_1.left);
18/**
19 * @category constructor
20 * @since 1.6.0
21 */
22var _left = function () { return l; };
23exports._left = _left;