Discard the success value while preserving the typed failure.
Effect<Unit, E> asUnit() { return map<Unit>((_) => unit); }