@@ -392,7 +392,7 @@ prepare_apply fn imps =
392 = do ctxt <- get_context
392 = do ctxt <- get_context
393 case lookupTy n ctxt of
393 case lookupTy n ctxt of
394 [] -> lift $ tfail $ NoSuchVariable n
394 [] -> lift $ tfail $ NoSuchVariable n
395− _ -> fail $ "Too many arguments for " ++ show fn
395+ _ -> lift $ tfail $ TooManyArguments n
396 | otherwise = fail $ "Too many arguments for " ++ show fn
396 | otherwise = fail $ "Too many arguments for " ++ show fn
398 doClaim ((i, _), n, t) = do claim n t
398 doClaim ((i, _), n, t) = do claim n t