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