# All files / src Relude_Result.bs.js

79.17% Statements 190/240
75.93% Branches 41/54
70.73% Functions 29/41
79.17% Lines 190/240

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593

    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x

    212x

    32x

    2x
    1x

    1x

    2x
    1x

    2x
    1x

    1x

    2x
    1x

    1x

    15x
    5x

    10x

    2x
    1x

    1x

    2x
    1x

    1x

    2x

    6x
    2x

    4x

    14x
    2x

    12x

    6x
    2x

    4x

    11x
    5x

    6x

    2x
    1x

    2x

    2x
    1x

    2x

    12x

    12x

    12x

    4x

    3x

    2x

    1x

    5x

    5x

    5x

    4x

    2x
    1x

    1x

    2x
    1x

    1x

    7x
    3x
    2x

    1x

    4x
    1x

    3x

    10x
    5x

    5x

    1x

    1x
    1x

    1x
    1x

    1x
    1x

    1x
    1x

    1x
    1x

    1x
    1x

    1x
    1x

    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x

    1x
    1x
    1x
    1x
    1x
    1x
    1x

    1x
    1x

    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x

    1x

    19x

    19x

    19x

    19x

    19x

    19x

    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x
    19x

     'use strict';

    var Block = require("bs-platform/lib/js/block.js");
    var Curry = require("bs-platform/lib/js/curry.js");
    var Caml_option = require("bs-platform/lib/js/caml_option.js");
    var Relude_NonEmpty = require("./Relude_NonEmpty.bs.js");
    var Relude_Validation = require("./Relude_Validation.bs.js");
    var Result$BsAbstract = require("bs-abstract/lib/js/src/implementations/Result.bs.js");
    var Caml_js_exceptions = require("bs-platform/lib/js/caml_js_exceptions.js");
    var Relude_Extensions_Alt = require("./extensions/Relude_Extensions_Alt.bs.js");
    var Relude_Extensions_Apply = require("./extensions/Relude_Extensions_Apply.bs.js");
    var Relude_Extensions_Monad = require("./extensions/Relude_Extensions_Monad.bs.js");
    var Relude_Extensions_Functor = require("./extensions/Relude_Extensions_Functor.bs.js");
    var Relude_Extensions_Foldable = require("./extensions/Relude_Extensions_Foldable.bs.js");
    var Relude_Extensions_Bifunctor = require("./extensions/Relude_Extensions_Bifunctor.bs.js");
    var Relude_Extensions_Bifoldable = require("./extensions/Relude_Extensions_Bifoldable.bs.js");
    var Relude_Extensions_MonadError = require("./extensions/Relude_Extensions_MonadError.bs.js");
    var Relude_Extensions_MonadThrow = require("./extensions/Relude_Extensions_MonadThrow.bs.js");
    var Relude_Extensions_Applicative = require("./extensions/Relude_Extensions_Applicative.bs.js");
    var Relude_Extensions_Traversable = require("./extensions/Relude_Extensions_Traversable.bs.js");
    var Relude_Extensions_Bitraversable = require("./extensions/Relude_Extensions_Bitraversable.bs.js");

    function ok(a) {
      return /* Ok */Block.__(0, [a]);
    }

    function error(e) {
      return /* Error */Block.__(1, [e]);
    }

    function getOk(param) {
      if (param.tag) {
        return ;
      } else {
        return Caml_option.some(param[0]);
      }
    }

    function getError(param) {
      if (param.tag) {
        return Caml_option.some(param[0]);
      }

    }

    function isOk(param) {
      if (param.tag) {
        return false;
      } else {
        return true;
      }
    }

    function isError(param) {
      if (param.tag) {
        return true;
      } else {
        return false;
      }
    }

    function fold(ec, ac, r) {
      if (r.tag) {
        return Curry._1(ec, r[0]);
      } else {
        return Curry._1(ac, r[0]);
      }
    }

    function getOrElse($$default, fa) {
      if (fa.tag) {
        return $$default;
      } else {
        return fa[0];
      }
    }

    function getOrElseLazy(getDefault, fa) {
      if (fa.tag) {
        return Curry._1(getDefault, /* () */0);
      } else {
        return fa[0];
      }
    }

    function merge(param) {
      return param[0];
    }

    function flip(param) {
      if (param.tag) {
        return /* Ok */Block.__(0, [param[0]]);
      } else {
        return /* Error */Block.__(1, [param[0]]);
      }
    }

    function map(f, fa) {
      if (fa.tag) {
        return fa;
      } else {
        return /* Ok */Block.__(0, [Curry._1(f, fa[0])]);
      }
    }

    function mapError(f, ra) {
      if (ra.tag) {
        return /* Error */Block.__(1, [Curry._1(f, ra[0])]);
      } else {
        return ra;
      }
    }

    function bimap(mapA, mapE, result) {
      if (result.tag) {
        return /* Error */Block.__(1, [Curry._1(mapE, result[0])]);
      } else {
        return /* Ok */Block.__(0, [Curry._1(mapA, result[0])]);
      }
    }

    function tap(f, ra) {
      if (!ra.tag) {
        Curry._1(f, ra[0]);
      }
      return ra;
    }

    function tapError(f, ra) {
      if (ra.tag) {
        Curry._1(f, ra[0]);
      }
      return ra;
    }

    function apply(rf, ra) {
      Iif (rf.tag) {
        if (ra.tag) {
          return /* Error */Block.__(1, [ra[0]]);
        } else {
          return /* Error */Block.__(1, [rf[0]]);
        }
      } else Iif (ra.tag) {
        return /* Error */Block.__(1, [ra[0]]);
      } else {
        return /* Ok */Block.__(0, [Curry._1(rf[0], ra[0])]);
      }
    }

    function map2(f, fa, fb) {
      return apply(map(f, fa), fb);
    }

    function map3(f, fa, fb, fc) {
      return apply(map2(f, fa, fb), fc);
    }

    function map4(f, fa, fb, fc, fd) {
      return apply(map3(f, fa, fb, fc), fd);
    }

    function map5(f, fa, fb, fc, fd, fe) {
      return apply(map4(f, fa, fb, fc, fd), fe);
    }

    function pure(a) {
      return /* Ok */Block.__(0, [a]);
    }

    function bind(fa, f) {
      Iif (fa.tag) {
        return fa;
      } else {
        return Curry._1(f, fa[0]);
      }
    }

    function flatMap(f, fa) {
      return bind(fa, f);
    }

    function flatten(mma) {
      return bind(mma, (function (a) {
                    return a;
                  }));
    }

    function alt(fa1, fa2) {
      if (fa1.tag) {
        return fa2;
      } else {
        return fa1;
      }
    }

    function catchError(f, fa) {
      if (fa.tag) {
        return Curry._1(f, fa[0]);
      } else {
        return fa;
      }
    }

    function handleError(eToA, fa) {
      if (fa.tag) {
        return /* Ok */Block.__(0, [Curry._1(eToA, fa[0])]);
      } else {
        return fa;
      }
    }

    function recover(a, fa) {
      return catchError((function (param) {
                    return /* Ok */Block.__(0, [a]);
                  }), fa);
    }

    function fromOption(defaultError, opt) {
      if (opt !== undefined) {
        return /* Ok */Block.__(0, [Caml_option.valFromOption(opt)]);
      } else {
        return /* Error */Block.__(1, [defaultError]);
      }
    }

    function fromOptionLazy(getError, opt) {
      if (opt !== undefined) {
        return /* Ok */Block.__(0, [Caml_option.valFromOption(opt)]);
      } else {
        return /* Error */Block.__(1, [Curry._1(getError, /* () */0)]);
      }
    }

    function eqBy(errorEq, okEq, a, b) {
      if (a.tag) {
        if (b.tag) {
          return Curry._2(errorEq, a[0], b[0]);
        } else {
          return false;
        }
      } else if (b.tag) {
        return false;
      } else {
        return Curry._2(okEq, a[0], b[0]);
      }
    }

    function tries(fn) {
      try {
        return /* Ok */Block.__(0, [Curry._1(fn, /* () */0)]);
      }
      catch (raw_exn){
        var exn = Caml_js_exceptions.internalToOCamlException(raw_exn);
        return /* Error */Block.__(1, [exn]);
      }
    }

    function triesAsString(fn) {
      return mapError((function (prim) {
                    return String(prim);
                  }), tries(fn));
    }

    function toValidationNel(param) {
      if (param.tag) {
        return /* VError */Block.__(1, [Relude_NonEmpty.List.pure(param[0])]);
      } else {
        return /* VOk */Block.__(0, [param[0]]);
      }
    }

    function toValidationNea(param) {
      if (param.tag) {
        return /* VError */Block.__(1, [Relude_NonEmpty.$$Array.pure(param[0])]);
      } else {
        return /* VOk */Block.__(0, [param[0]]);
      }
    }

    function WithError(E) {
      var Functor = {
        map: map
      };
      var include = Relude_Extensions_Functor.FunctorExtensions(Functor);
      var Bifunctor = {
        bimap: bimap
      };
      var include$1 = Relude_Extensions_Bifunctor.BifunctorExtensions(Bifunctor);
      var Alt = {
        map: map,
        alt: alt
      };
      Relude_Extensions_Alt.AltExtensions(Alt);
      var Apply = {
        map: map,
        apply: apply
      };
      var include$2 = Relude_Extensions_Apply.ApplyExtensions(Apply);
      var Applicative = {
        map: map,
        apply: apply,
        pure: pure
      };
      var include$3 = Relude_Extensions_Applicative.ApplicativeExtensions(Applicative);
      var Monad = {
        map: map,
        apply: apply,
        pure: pure,
        flat_map: bind
      };
      var include$4 = Relude_Extensions_Monad.MonadExtensions(Monad);
      var MonadThrow = {
        map: map,
        apply: apply,
        pure: pure,
        flat_map: bind,
        throwError: error
      };
      Relude_Extensions_MonadThrow.MonadThrowExtensions(MonadThrow);
      var MonadError = {
        map: map,
        apply: apply,
        pure: pure,
        flat_map: bind,
        throwError: error,
        catchError: catchError
      };
      Relude_Extensions_MonadError.MonadErrorExtensions(MonadError);
      var include$5 = Result$BsAbstract.Foldable(E);
      var fold_left = include$5.fold_left;
      var fold_right = include$5.fold_right;
      var Foldable_Fold_Map = include$5.Fold_Map;
      var Foldable_Fold_Map_Any = include$5.Fold_Map_Any;
      var Foldable_Fold_Map_Plus = include$5.Fold_Map_Plus;
      var Foldable = {
        fold_left: fold_left,
        fold_right: fold_right,
        Fold_Map: Foldable_Fold_Map,
        Fold_Map_Any: Foldable_Fold_Map_Any,
        Fold_Map_Plus: Foldable_Fold_Map_Plus
      };
      var include$6 = Relude_Extensions_Foldable.FoldableExtensions(Foldable);
      var bifold_left = Result$BsAbstract.Bifoldable.bifold_left;
      var bifold_right = Result$BsAbstract.Bifoldable.bifold_right;
      var Bifoldable_Fold_Map = Result$BsAbstract.Bifoldable.Fold_Map;
      var Bifoldable_Fold_Map_Any = Result$BsAbstract.Bifoldable.Fold_Map_Any;
      var Bifoldable_Fold_Map_Plus = Result$BsAbstract.Bifoldable.Fold_Map_Plus;
      var Bifoldable = {
        bifold_left: bifold_left,
        bifold_right: bifold_right,
        Fold_Map: Bifoldable_Fold_Map,
        Fold_Map_Any: Bifoldable_Fold_Map_Any,
        Fold_Map_Plus: Bifoldable_Fold_Map_Plus
      };
      Relude_Extensions_Bifoldable.BifoldableExtensions(Bifoldable);
      var WithApplicative = function (A) {
        var include = Result$BsAbstract.Traversable(E)(A);
        var traverse = include.traverse;
        var sequence = include.sequence;
        var Traversable_map = include.map;
        var Traversable_fold_left = include.fold_left;
        var Traversable_fold_right = include.fold_right;
        var Traversable_Fold_Map = include.Fold_Map;
        var Traversable_Fold_Map_Any = include.Fold_Map_Any;
        var Traversable_Fold_Map_Plus = include.Fold_Map_Plus;
        var Traversable = {
          map: Traversable_map,
          fold_left: Traversable_fold_left,
          fold_right: Traversable_fold_right,
          Fold_Map: Traversable_Fold_Map,
          Fold_Map_Any: Traversable_Fold_Map_Any,
          Fold_Map_Plus: Traversable_Fold_Map_Plus,
          traverse: traverse,
          sequence: sequence
        };
        Relude_Extensions_Traversable.TraversableExtensions(Traversable);
        var include$1 = Result$BsAbstract.Bitraversable(A);
        var bitraverse = include$1.bitraverse;
        var bisequence = include$1.bisequence;
        var Bitraversable_bimap = include$1.bimap;
        var Bitraversable_bifold_left = include$1.bifold_left;
        var Bitraversable_bifold_right = include$1.bifold_right;
        var Bitraversable_Fold_Map = include$1.Fold_Map;
        var Bitraversable_Fold_Map_Any = include$1.Fold_Map_Any;
        var Bitraversable_Fold_Map_Plus = include$1.Fold_Map_Plus;
        var Bitraversable = {
          bimap: Bitraversable_bimap,
          bifold_left: Bitraversable_bifold_left,
          bifold_right: Bitraversable_bifold_right,
          Fold_Map: Bitraversable_Fold_Map,
          Fold_Map_Any: Bitraversable_Fold_Map_Any,
          Fold_Map_Plus: Bitraversable_Fold_Map_Plus,
          bitraverse: bitraverse,
          bisequence: bisequence
        };
        Relude_Extensions_Bitraversable.BitraversableExtensions(Bitraversable);
        return {
                Traversable: Traversable,
                traverse: traverse,
                sequence: sequence,
                Bitraversable: Bitraversable,
                bitraverse: bitraverse,
                bisequence: bisequence
              };
      };
      var include$7 = Relude_Extensions_Functor.FunctorInfix(Functor);
      var include$8 = Relude_Extensions_Bifunctor.BifunctorInfix(Bifunctor);
      var include$9 = Relude_Extensions_Apply.ApplyInfix(Apply);
      var include$10 = Relude_Extensions_Monad.MonadInfix(Monad);
      var Infix_FunctorExtensions = include$7.FunctorExtensions;
      var Infix_$less$dollar$great = include$7.$less$$great;
      var Infix_$less$hash$great = include$7.$less$hash$great;
      var Infix_$less$dollar = include$7.$less$;
      var Infix_$$great = include$7.$$great;
      var Infix_$less$at$great = include$7.$less$at$great;
      var Infix_$less$less$dollar$great$great = include$8.$less$less$$great$great;
      var Infix_ApplyExtensions = include$9.ApplyExtensions;
      var Infix_$less$star$great = include$9.$less$star$great;
      var Infix_$less$star = include$9.$less$star;
      var Infix_$star$great = include$9.$star$great;
      var Infix_MonadExtensions = include$10.MonadExtensions;
      var Infix_$great$great$eq = include$10.$great$great$eq;
      var Infix_$eq$less$less = include$10.$eq$less$less;
      var Infix_$great$eq$great = include$10.$great$eq$great;
      var Infix_$less$eq$less = include$10.$less$eq$less;
      var Infix = {
        FunctorExtensions: Infix_FunctorExtensions,
        $less$$great: Infix_$less$dollar$great,
        $less$hash$great: Infix_$less$hash$great,
        $less$: Infix_$less$dollar,
        $$great: Infix_$$great,
        $less$at$great: Infix_$less$at$great,
        $less$less$$great$great: Infix_$less$less$dollar$great$great,
        ApplyExtensions: Infix_ApplyExtensions,
        $less$star$great: Infix_$less$star$great,
        $less$star: Infix_$less$star,
        $star$great: Infix_$star$great,
        MonadExtensions: Infix_MonadExtensions,
        $great$great$eq: Infix_$great$great$eq,
        $eq$less$less: Infix_$eq$less$less,
        $great$eq$great: Infix_$great$eq$great,
        $less$eq$less: Infix_$less$eq$less
      };
      return {
              Functor: Functor,
              map: map,
              BsFunctorExtensions: include.BsFunctorExtensions,
              flipMap: include.flipMap,
              $$void: include.$$void,
              voidRight: include.voidRight,
              voidLeft: include.voidLeft,
              flap: include.flap,
              Bifunctor: Bifunctor,
              bimap: bimap,
              mapLeft: include$1.mapLeft,
              mapRight: include$1.mapRight,
              mapError: include$1.mapError,
              Alt: Alt,
              alt: alt,
              Apply: Apply,
              apply: apply,
              BsApplyExtensions: include$2.BsApplyExtensions,
              applyFirst: include$2.applyFirst,
              applySecond: include$2.applySecond,
              map2: include$2.map2,
              map3: include$2.map3,
              map4: include$2.map4,
              map5: include$2.map5,
              tuple2: include$2.tuple2,
              tuple3: include$2.tuple3,
              tuple4: include$2.tuple4,
              tuple5: include$2.tuple5,
              mapTuple2: include$2.mapTuple2,
              mapTuple3: include$2.mapTuple3,
              mapTuple4: include$2.mapTuple4,
              mapTuple5: include$2.mapTuple5,
              Applicative: Applicative,
              pure: pure,
              BsApplicativeExtensions: include$3.BsApplicativeExtensions,
              liftA1: include$3.liftA1,
              Monad: Monad,
              bind: bind,
              BsMonadExtensions: include$4.BsMonadExtensions,
              flatMap: include$4.flatMap,
              flatten: include$4.flatten,
              composeKleisli: include$4.composeKleisli,
              flipComposeKleisli: include$4.flipComposeKleisli,
              liftM1: include$4.liftM1,
              when_: include$4.when_,
              unless: include$4.unless,
              MonadThrow: MonadThrow,
              throwError: error,
              MonadError: MonadError,
              catchError: catchError,
              Foldable: Foldable,
              foldLeft: fold_left,
              foldRight: fold_right,
              BsFoldableExtensions: include$6.BsFoldableExtensions,
              any: include$6.any,
              all: include$6.all,
              containsBy: include$6.containsBy,
              contains: include$6.contains,
              indexOfBy: include$6.indexOfBy,
              indexOf: include$6.indexOf,
              minBy: include$6.minBy,
              min: include$6.min,
              maxBy: include$6.maxBy,
              max: include$6.max,
              countBy: include$6.countBy,
              length: include$6.length,
              forEach: include$6.forEach,
              forEachWithIndex: include$6.forEachWithIndex,
              find: include$6.find,
              findWithIndex: include$6.findWithIndex,
              toList: include$6.toList,
              toArray: include$6.toArray,
              FoldableSemigroupExtensions: include$6.FoldableSemigroupExtensions,
              FoldableMonoidExtensions: include$6.FoldableMonoidExtensions,
              foldMap: include$6.foldMap,
              foldWithMonoid: include$6.foldWithMonoid,
              intercalate: include$6.intercalate,
              FoldableApplicativeExtensions: include$6.FoldableApplicativeExtensions,
              FoldableMonadExtensions: include$6.FoldableMonadExtensions,
              FoldableEqExtensions: include$6.FoldableEqExtensions,
              FoldableOrdExtensions: include$6.FoldableOrdExtensions,
              Bifoldable: Bifoldable,
              bifoldLeft: bifold_left,
              bifoldRight: bifold_right,
              WithApplicative: WithApplicative,
              Eq: 0,
              Ord: 0,
              Show: 0,
              Infix: Infix
            };
    }

    var unit = /* Ok */Block.__(0, [/* () */0]);

    var toOption = getOk;

    var mapOk = map;

    var tapOk = tap;

    var toValidation = Relude_Validation.fromResult;

    var fromValidation = Relude_Validation.toResult;

    exports.ok = ok;
    exports.error = error;
    exports.unit = unit;
    exports.getOk = getOk;
    exports.toOption = toOption;
    exports.getError = getError;
    exports.isOk = isOk;
    exports.isError = isError;
    exports.fold = fold;
    exports.getOrElse = getOrElse;
    exports.getOrElseLazy = getOrElseLazy;
    exports.merge = merge;
    exports.flip = flip;
    exports.map = map;
    exports.mapOk = mapOk;
    exports.mapError = mapError;
    exports.bimap = bimap;
    exports.tap = tap;
    exports.tapOk = tapOk;
    exports.tapError = tapError;
    exports.apply = apply;
    exports.map2 = map2;
    exports.map3 = map3;
    exports.map4 = map4;
    exports.map5 = map5;
    exports.pure = pure;
    exports.bind = bind;
    exports.flatMap = flatMap;
    exports.flatten = flatten;
    exports.alt = alt;
    exports.catchError = catchError;
    exports.handleError = handleError;
    exports.recover = recover;
    exports.fromOption = fromOption;
    exports.fromOptionLazy = fromOptionLazy;
    exports.eqBy = eqBy;
    exports.tries = tries;
    exports.triesAsString = triesAsString;
    exports.toValidation = toValidation;
    exports.fromValidation = fromValidation;
    exports.toValidationNel = toValidationNel;
    exports.toValidationNea = toValidationNea;
    exports.WithError = WithError;
    /* Relude_NonEmpty Not a pure module */