add name to type arg in Context' and Telescope'

This commit is contained in:
rhiannon morris 2021-12-23 15:54:16 +01:00
parent c75332be44
commit dbd0a3a451

View file

@ -22,7 +22,7 @@ data Telescope : (tm : Nat -> Type) -> (from, to : Nat) -> Type where
%name Telescope tel %name Telescope tel
public export public export
Telescope' : Type -> (from, to : Nat) -> Type Telescope' : (a : Type) -> (from, to : Nat) -> Type
Telescope' a = Telescope (\_ => a) Telescope' a = Telescope (\_ => a)
||| a global context is actually just a telescope over no existing bindings ||| a global context is actually just a telescope over no existing bindings
@ -31,7 +31,7 @@ Context : (tm : Nat -> Type) -> (len : Nat) -> Type
Context tm len = Telescope tm 0 len Context tm len = Telescope tm 0 len
public export public export
Context' : Type -> (len : Nat) -> Type Context' : (a : Type) -> (len : Nat) -> Type
Context' a = Context (\_ => a) Context' a = Context (\_ => a)