"use strict"
Object.defineProperty(exports, "__esModule", { value: true })
exports.onLeft = void 0
const environment_1 = require("./environment")
const join_1 = require("./join")
/**
 * Returns this effect if environment is on the left, otherwise returns
 * whatever is on the right unmodified. Note that the result is lifted
 * in either.
 */
function onLeft(__trace) {
  return (self) =>
    (0, join_1.joinEither_)(self, (0, environment_1.environment)(), __trace)
}
exports.onLeft = onLeft
//# sourceMappingURL=onLeft.js.map
