Skip to content

Commit 28b57e0

Browse files
committed
Remove Generic instance from BoundedRatio type
1 parent 97a0980 commit 28b57e0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

libs/cardano-ledger-core/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## 1.19.0.0
44

5+
* Remove `Generic` instance from `BoundedRatio` type
56
* Remove deprecated function `addrPtrNormalize`
67
* Remove deprecated functions `mkTxIx`, `mkCertIx`, `hashAnchorData`
78
* Remove deprecated functions `bheader`, `bbody`

libs/cardano-ledger-core/src/Cardano/Ledger/BaseTypes.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ integralToBounded i
258258
-- interval that is controlled by phantom type variable @b@ as well as by
259259
-- the bounds of underlying type @a@.
260260
newtype BoundedRatio b a = BoundedRatio (Ratio a)
261-
deriving (Eq, Generic)
261+
deriving (Eq)
262262
deriving newtype (Show, NoThunks, NFData)
263263

264264
-- Deriving Ord instance can lead to integer overflow. We must go through Rational.

0 commit comments

Comments
 (0)