Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class KnownBounds a Source #
Instances
class HasZero a where Source #
Nothing
Instances
(FromJSON a, HasZero a) ⇒ FromJSON (NonZero a) Source # | |
ToJSON a ⇒ ToJSON (NonZero a) Source # | |
Show a ⇒ Show (NonZero a) Source # | |
(Typeable a, DecCBOR a, HasZero a) ⇒ DecCBOR (NonZero a) Source # | |
EncCBOR a ⇒ EncCBOR (NonZero a) Source # | |
(ToPlutusData a, HasZero a) ⇒ ToPlutusData (NonZero a) Source # | |
Defined in Cardano.Ledger.Plutus.ToPlutusData | |
NFData a ⇒ NFData (NonZero a) Source # | |
Defined in Cardano.Ledger.BaseTypes.NonZero | |
Eq a ⇒ Eq (NonZero a) Source # | |
Ord a ⇒ Ord (NonZero a) Source # | |
Defined in Cardano.Ledger.BaseTypes.NonZero | |
NoThunks a ⇒ NoThunks (NonZero a) Source # | |
knownNonZeroBounded ∷ ∀ (n ∷ Nat) a. (KnownNat n, 1 <= n, WithinBounds n a, Num a) ⇒ NonZero a Source #
unsafeNonZero ∷ a → NonZero a Source #
(/.) ∷ Fractional a ⇒ a → NonZero a → a infixl 7 Source #