We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
asNaturalHKD
1 parent 0eccc88 commit b07ea85Copy full SHA for b07ea85
eras/conway/impl/src/Cardano/Ledger/Conway/PParams.hs
@@ -1241,6 +1241,8 @@ conwayModifiedPPGroups
1241
, ppGroup p31
1242
]
1243
1244
+-- | Care should be taken to not apply this function to signed values, otherwise it will result in
1245
+-- an `ArithmeticUnderflow` exception for negative numbers.
1246
asNaturalHKD :: forall f i. (HKDFunctor f, Integral i) => HKD f i -> HKD f Natural
1247
asNaturalHKD = hkdMap (Proxy @f) (fromIntegral @i @Natural)
1248
0 commit comments