@@ -136,6 +136,7 @@ data Err' t
136136 | TooManyArguments Name
137137 | CantIntroduce t
138138 | NoSuchVariable Name
139+ | WithFnType t
139140 | NoTypeDecl Name
140141 | NotInjective t t t
141142 | CantResolve t
@@ -1119,6 +1120,8 @@ bindTyArgs b xs = bindAll (map (\ (n, ty) -> (n, b ty)) xs)
11191120-- | Return a list of pairs of the names of the outermost 'Pi'-bound
11201121-- variables in the given term, together with their types.
11211122getArgTys :: TT n -> [(n, TT n)]
1123+getArgTys (Bind n (PVar _) sc) = getArgTys sc
1124+getArgTys (Bind n (PVTy _) sc) = getArgTys sc
11221125getArgTys (Bind n (Pi t _) sc) = (n, t) : getArgTys sc
11231126getArgTys _ = []
11241127