File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
pub/functora/src/prelude/Functora Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1213,6 +1213,12 @@ instance From Fix (Fixed E30) where
1213
1213
instance From Fix Rational where
1214
1214
from = via @ (Fixed E30 ) @ Fix @ Rational
1215
1215
1216
+ instance From Fix Double where
1217
+ from = via @ Rational @ Fix @ Double
1218
+
1219
+ instance From Fix Float where
1220
+ from = via @ Rational @ Fix @ Float
1221
+
1216
1222
newtype FixNonNeg = FixNonNeg
1217
1223
{ unFixNonNeg :: Fix
1218
1224
}
@@ -1266,6 +1272,12 @@ instance From FixNonNeg (Fixed E30) where
1266
1272
instance From FixNonNeg Rational where
1267
1273
from = via @ Fix @ FixNonNeg @ Rational
1268
1274
1275
+ instance From FixNonNeg Double where
1276
+ from = via @ Fix @ FixNonNeg @ Double
1277
+
1278
+ instance From FixNonNeg Float where
1279
+ from = via @ Fix @ FixNonNeg @ Float
1280
+
1269
1281
inspectFixed ::
1270
1282
forall str e .
1271
1283
( HasResolution e ,
You can’t perform that action at this time.
0 commit comments