@@ -136,6 +136,7 @@ data Err' t
136 | TooManyArguments Name
136 | TooManyArguments Name
137 | CantIntroduce t
137 | CantIntroduce t
138 | NoSuchVariable Name
138 | NoSuchVariable Name
139 | NoTypeDecl Name
140 | NoTypeDecl Name
140 | NotInjective t t t
141 | NotInjective t t t
141 | CantResolve t
142 | CantResolve t
@@ -1119,6 +1120,8 @@ bindTyArgs b xs = bindAll (map (\ (n, ty) -> (n, b ty)) xs)
1119-- | Return a list of pairs of the names of the outermost 'Pi'-bound
1120-- | Return a list of pairs of the names of the outermost 'Pi'-bound
1120-- variables in the given term, together with their types.
1121-- variables in the given term, together with their types.
1121getArgTys :: TT n -> [(n, TT n)]
1122getArgTys :: TT n -> [(n, TT n)]
1123+getArgTys (Bind n (PVar _) sc) = getArgTys sc
1124+getArgTys (Bind n (PVTy _) sc) = getArgTys sc
1122getArgTys (Bind n (Pi t _) sc) = (n, t) : getArgTys sc
1125getArgTys (Bind n (Pi t _) sc) = (n, t) : getArgTys sc
1123getArgTys _ = []
1126getArgTys _ = []