import * as O from "../../../../Option";
import * as MapError from "./mapError";
import * as RightOrFail from "./rightOrFail";
/**
 * Fails with the error `None` if value is `Left`.
 */

export function right(self) {
  return RightOrFail.rightOrFail_(MapError.mapError_(self, O.some), () => O.none);
}
//# sourceMappingURL=right.js.map