Skip to content

Commit 2e78c73

Browse files
committed
some fix instances
1 parent b7bcbd8 commit 2e78c73

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pub/functora/src/prelude/Functora/Prelude.hs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,6 +1213,12 @@ instance From Fix (Fixed E30) where
12131213
instance From Fix Rational where
12141214
from = via @(Fixed E30) @Fix @Rational
12151215

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+
12161222
newtype FixNonNeg = FixNonNeg
12171223
{ unFixNonNeg :: Fix
12181224
}
@@ -1266,6 +1272,12 @@ instance From FixNonNeg (Fixed E30) where
12661272
instance From FixNonNeg Rational where
12671273
from = via @Fix @FixNonNeg @Rational
12681274

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+
12691281
inspectFixed ::
12701282
forall str e.
12711283
( HasResolution e,

0 commit comments

Comments
 (0)