Equality between programs with effects : doctoral dissertation