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