| Copyright | (c) Viktor Dukhovni 2026 |
|---|---|
| License | BSD-3-Clause |
| Maintainer | ietf-dane@dukhovni.org |
| Stability | unstable |
| Safe Haskell | None |
| Language | GHC2024 |
Net.DNSBase.Nat16
Description
A 16-bit-constrained variant of Nat: the Nat16 constraint
carries enough type-level evidence to retrieve the numeric
codepoint at runtime via natToWord16. Used to index the
fallback OpaqueRData /
OpaqueOption /
OpaqueSPV carriers
so that values for different RR option SVCB-parameter
codepoints inhabit distinct types even though they share a
single underlying representation. withNat16 brings a runtime
Word16 value into scope as a Nat16-instantiated type
variable.
16-bit type-level naturals for Opaque RData
A type synonym for Natural.
Previously, this was an opaque data type, but it was changed to a type synonym.
Since: base-4.16.0.0
The class Typeable allows a concrete representation of a type to
be calculated.
Minimal complete definition
typeRep#