1// Generated by purs version 0.13.6
3var Control_Applicative = require("../Control.Applicative/index.js");
4var Control_Apply = require("../Control.Apply/index.js");
5var Data_Functor = require("../Data.Functor/index.js");
6var Left = (function () {
7 function Left(value0) {
10 Left.create = function (value0) {
11 return new Left(value0);
15var Right = (function () {
16 function Right(value0) {
19 Right.create = function (value0) {
20 return new Right(value0);
24var functorEither = new Data_Functor.Functor(function (f) {
26 if (m instanceof Left) {
27 return new Left(m.value0);
29 if (m instanceof Right) {
30 return new Right(f(m.value0));
32 throw new Error("Failed pattern match at Data.Either (line 38, column 1 - line 38, column 52): " + [ m.constructor.name ]);
35var either = function (v) {
36 return function (v1) {
37 return function (v2) {
38 if (v2 instanceof Left) {
41 if (v2 instanceof Right) {
44 throw new Error("Failed pattern match at Data.Either (line 238, column 1 - line 238, column 64): " + [ v.constructor.name, v1.constructor.name, v2.constructor.name ]);
48var applyEither = new Control_Apply.Apply(function ($dollar__unused) {
51 return function (v1) {
52 if (v instanceof Left) {
53 return new Left(v.value0);
55 if (v instanceof Right) {
56 return Data_Functor.map(functorEither)(v.value0)(v1);
58 throw new Error("Failed pattern match at Data.Either (line 82, column 1 - line 84, column 30): " + [ v.constructor.name, v1.constructor.name ]);
61var applicativeEither = new Control_Applicative.Applicative(function ($dollar__unused) {
68 functorEither: functorEither,
69 applyEither: applyEither,
70 applicativeEither: applicativeEither
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list