Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data SingKind k where
- withSingKind ∷ Kind ann → (∀ k. SingKind k → r) → r
- class KnownKind k where
- bringKnownKind ∷ SingKind k → (KnownKind k ⇒ r) → r
- withKnownKind ∷ Kind ann → (∀ k. KnownKind k ⇒ Proxy k → r) → r
- class ToKind (uni ∷ Type → Type) where
- toSingKind ∷ uni (Esc (a ∷ k)) → SingKind k
- demoteKind ∷ SingKind k → Kind ()
- kindOfBuiltinType ∷ ToKind uni ⇒ uni (Esc a) → Kind ()
Documentation
withSingKind ∷ Kind ann → (∀ k. SingKind k → r) → r Source #
class KnownKind k where Source #
For reifying Haskell kinds representing Plutus kinds at the term level.
bringKnownKind ∷ SingKind k → (KnownKind k ⇒ r) → r Source #
class ToKind (uni ∷ Type → Type) where Source #
For computing the Plutus kind of a built-in type. See kindOfBuiltinType
.
toSingKind ∷ uni (Esc (a ∷ k)) → SingKind k Source #
Reify the kind of a type from the universe at the term level.
Instances
ToKind DefaultUni Source # | |
Defined in PlutusCore.Default.Universe toSingKind ∷ ∀ k (a ∷ k). DefaultUni (Esc a) → SingKind k Source # |
demoteKind ∷ SingKind k → Kind () Source #
Convert a reified Haskell kind to a Plutus kind.