# All files / src Relude_Bool.bs.js

100% Statements 56/56
100% Branches 18/18
100% Functions 9/9
100% Lines 56/56

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

    1x
    1x

    2x
    1x

    1x

    2x

    4x
    2x

    2x

    4x
    2x

    2x

    4x

    4x

    8x
    2x
    6x
    4x

    2x

    4x

    4x
    2x

    2x

    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

     'use strict';

    var Curry = require("bs-platform/lib/js/curry.js");
    var Bool$BsAbstract = require("bs-abstract/lib/js/src/implementations/Bool.bs.js");

    function ifElse(onTrue, onFalse, value) {
      if (value) {
        return Curry._1(onTrue, /* () */0);
      } else {
        return Curry._1(onFalse, /* () */0);
      }
    }

    function inverse(prim) {
      return !prim;
    }

    function and_(prim, prim$1) {
      if (prim) {
        return prim$1;
      } else {
        return false;
      }
    }

    function or_(prim, prim$1) {
      if (prim) {
        return true;
      } else {
        return prim$1;
      }
    }

    function nand(a, b) {
      return !(a && b);
    }

    function nor(a, b) {
      return !(a || b);
    }

    function xor(a, b) {
      if (!a && b) {
        return true;
      } else if (a) {
        return !b;
      } else {
        return false;
      }
    }

    function xnor(a, b) {
      return !xor(a, b);
    }

    function implies(a, b) {
      if (a) {
        return b;
      } else {
        return true;
      }
    }

    var eq = Bool$BsAbstract.Eq.eq;

    var compare = Bool$BsAbstract.Ord.compare;

    var show = Bool$BsAbstract.Show.show;

    var not__ = inverse;

    var Eq = 0;

    var Ord = 0;

    var Show = 0;

    var Conjunctive = 0;

    var And = 0;

    var Disjunctive = 0;

    var Or = 0;

    var Infix = 0;

    exports.ifElse = ifElse;
    exports.inverse = inverse;
    exports.not__ = not__;
    exports.and_ = and_;
    exports.or_ = or_;
    exports.nand = nand;
    exports.nor = nor;
    exports.xor = xor;
    exports.xnor = xnor;
    exports.implies = implies;
    exports.Eq = Eq;
    exports.eq = eq;
    exports.Ord = Ord;
    exports.compare = compare;
    exports.Show = Show;
    exports.show = show;
    exports.Conjunctive = Conjunctive;
    exports.And = And;
    exports.Disjunctive = Disjunctive;
    exports.Or = Or;
    exports.Infix = Infix;
    /* Bool-BsAbstract Not a pure module */