Actually I just realized that the law does not hold, the type `Void -> Maybe Void` has two inhabitants, not one:
f1 x = Nothing
f2 x = Just x
f1 x = Nothing
f2 x = Just x
This depends on what equivalence you're using, and the only one in which it's true (definitional equality) isn't very interesting. Extensionally, the functions are identical.