| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Test.Cardano.Ledger.Core.Rational
Synopsis
- unsafeBoundRational ∷ (HasCallStack, Typeable r, BoundedRational r) ⇒ Rational → r
- class IsRatio r where
Documentation
unsafeBoundRational ∷ (HasCallStack, Typeable r, BoundedRational r) ⇒ Rational → r Source #
class IsRatio r where Source #
polymorphic rationals that agree with the Show instances of UnitInterval and friends.
Minimal complete definition
Nothing
Methods
(%!) ∷ Integer → Integer → r Source #
default (%!) ∷ (HasCallStack, Typeable r, BoundedRational r) ⇒ Integer → Integer → r Source #