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