import * as tracing_1 from "../../Tracing"
import * as tracing_2 from "../../Tracing"
const fileName_1 = "(@effect-ts/system): _src/Testing/BoolAlgebraM/index.ts"
import * as T from "../../Effect"
import { flow } from "../../Function"
import * as BA from "../BoolAlgebra"
export class BoolAlgebraM {
  constructor(run) {
    this.run = run
  }
}
T._R, T._E, T._A
export function and_(self, that) {
  return new BoolAlgebraM(
    T.zipWith_(self.run, that.run, BA.and_, fileName_1 + ":17:37")
  )
}
export function and(that) {
  return (self) => and_(self, that)
}
export function or_(self, that) {
  return new BoolAlgebraM(T.zipWith_(self.run, that.run, BA.or_, fileName_1 + ":28:37"))
}
export function or(that) {
  return (self) => or_(self, that)
}
export function implies_(self, that) {
  return new BoolAlgebraM(
    T.zipWith_(self.run, that.run, BA.implies_, fileName_1 + ":39:37")
  )
}
export function implies(that) {
  return (self) => implies_(self, that)
}
export function iff_(self, that) {
  return new BoolAlgebraM(
    T.zipWith_(self.run, that.run, BA.iff_, fileName_1 + ":50:37")
  )
}
export function iff(that) {
  return (self) => iff_(self, that)
}
export function not(self) {
  return new BoolAlgebraM(T.map_(self.run, BA.not, fileName_1 + ":58:33"))
}
export function as_(self, b) {
  return map_(self, (_) => b)
}
export function as(b) {
  return (self) => as_(self, b)
}
export function chain_(self, f) {
  return new BoolAlgebraM(
    T.chain_(
      self.run,
      BA.chainM((_) => f(_).run),
      fileName_1 + ":77:13"
    )
  )
}
export function chain(f) {
  return (self) => chain_(self, f)
}
export function isSuccess(self) {
  return T.map_(self.run, BA.isSuccess, fileName_1 + ":91:16")
}
export function map_(self, f) {
  return chain_(self, flow(f, success))
}
export function failure(a) {
  return new BoolAlgebraM(T.succeed(BA.failure(a), fileName_1 + ":102:36"))
}
export function fromEffect(effect) {
  return new BoolAlgebraM(T.map_(effect, BA.success, fileName_1 + ":106:33"))
}
export function success(a) {
  return new BoolAlgebraM(T.succeed(BA.success(a), fileName_1 + ":110:36"))
}
//# sourceMappingURL=index.js.map
