| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Rzk.TypeCheck.MetaPrefix
Description
Diagnostics for unsaturated schematic parameters.
A declaration's meta prefix ends at its last schematic parameter:
a universe, CUBE, TOPE, or a function quantifying over or into one.
- Structural checking requires the full prefix at object-level uses.
- Strict checking confines schema arguments to a top-level receiver's meta prefix.
Strict checking is the default. Neither check establishes universe levels; the Hurkens construction still passes these checks.
Documentation
metaPrefixOf :: forall (n :: S). Distinct n => TermT n -> TypeCheck n Int Source #
Count parameters through the last schematic one. An incomplete classification is reported when meta-prefix checking is enabled.