We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
SNat
base
SNat is part of base-4.18.0.0 and later. Up to this point, we've defined our own version:
base-4.18.0.0
data SNat (n :: Nat) where SNat :: KnownNat n => SNat n
base's version is a bit more complex:
newtype SNat (n :: Nat) = UnsafeSNat Natural type role SNat nominal pattern SNat :: forall n. () => KnownNat n => SNat n pattern SNat <- (knownNatInstance -> KnownNatInstance) where SNat = natSing {-# COMPLETE SNat #-} data KnownNatInstance (n :: Nat) where KnownNatInstance :: KnownNat n => KnownNatInstance n knownNatInstance :: SNat n -> KnownNatInstance n knownNatInstance sn = withKnownNat sn KnownNatInstance
Could we re-export for newer bases and expect everything to JustWork(tm)?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
SNat
is part ofbase-4.18.0.0
and later. Up to this point, we've defined our own version:base
's version is a bit more complex:Could we re-export for newer bases and expect everything to JustWork(tm)?
The text was updated successfully, but these errors were encountered: