make as_fractional_fractional a useful instance
Loading
-
Cc @robbertkrebbers -- this was needed to make lambda-rust weak work again with Coq master.
-
I don't remember much of the rational of this design. The only thing I remember is that I was not much satisfied by it, so feel free to change it if you find something better.
In particular, I do agree that it feels bad to have two instances for each fractional object (the one derived from
as_fractional_fractional
, and the one directly defined). We could try to dropas_fractional_fractional
as an instance. But then, I think there is actually no point at keeping it at all:AsFractional
would then only contain theas_fractional
field, and semantically not tied to the fractionality.
Please register or sign in to comment