first pass at liftWhere

This commit is contained in:
2025-02-15 21:07:44 -08:00
parent 4126d6a67a
commit 001cba26ee
6 changed files with 173 additions and 43 deletions

View File

@@ -308,7 +308,7 @@ record MetaContext where
mcmode : MetaMode
data Def = Axiom | TCon Int (List QName) | DCon Int QName | Fn Tm | PrimTCon Int
| PrimFn String (List QName)
| PrimFn String Nat (List QName)
instance Show Def where
show Axiom = "axiom"
@@ -316,7 +316,7 @@ instance Show Def where
show (DCon k tyname) = "DCon \{show k} \{show tyname}"
show (Fn t) = "Fn \{show t}"
show (PrimTCon _) = "PrimTCon"
show (PrimFn src used) = "PrimFn \{show src} \{show used}"
show (PrimFn src arity used) = "PrimFn \{show src} \{show arity} \{show used}"
-- entry in the top level context