@@ -266,10 +266,10 @@ elab ist info pattern opts fn tm
266 let as' = pruneByType tc ctxt as
266 let as' = pruneByType tc ctxt as
267-- trace (show as ++ "\n ==> " ++ showSep ", " (map showTmImpls as')) $
267-- trace (show as ++ "\n ==> " ++ showSep ", " (map showTmImpls as')) $
268 tryAll (zip (map (elab' ina) as') (map showHd as'))
268 tryAll (zip (map (elab' ina) as') (map showHd as'))
269− where showHd (PApp _ (PRef _ n) _) = show n
269+ where showHd (PApp _ (PRef _ n) _) = n
270− showHd (PRef _ n) = show n
270+ showHd (PRef _ n) = n
271− showHd (PApp _ h _) = show h
271+ showHd (PApp _ h _) = showHd h
272− showHd x = show x
272+ showHd x = NErased -- We probably should do something better than this here
273 elab' ina (PAlternative False as)
273 elab' ina (PAlternative False as)
274 = trySeq as
274 = trySeq as
275 where -- if none work, take the error from the first
275 where -- if none work, take the error from the first
@@ -969,7 +969,7 @@ runTac autoSolve ist fn tac
969 ns -> return (map (\ (n, a) -> (n, map (const True) a)) ns)
969 ns -> return (map (\ (n, a) -> (n, map (const True) a)) ns)
970 let tacs = map (\ (fn', imps) ->
970 let tacs = map (\ (fn', imps) ->
971 (match_apply (Var fn') (map (\x -> (x, 0)) imps),
971 (match_apply (Var fn') (map (\x -> (x, 0)) imps),
972− show fn')) fnimps
972+ fn')) fnimps
973 tryAll tacs
973 tryAll tacs
974 when autoSolve solveAll
974 when autoSolve solveAll
975 where envArgs n = do e <- get_env
975 where envArgs n = do e <- get_env
@@ -985,7 +985,7 @@ runTac autoSolve ist fn tac
985 ns -> return (map (\ (n, a) -> (n, map isImp a)) ns)
985 ns -> return (map (\ (n, a) -> (n, map isImp a)) ns)
986 let tacs = map (\ (fn', imps) ->
986 let tacs = map (\ (fn', imps) ->
987 (apply (Var fn') (map (\x -> (x, 0)) imps),
987 (apply (Var fn') (map (\x -> (x, 0)) imps),
988− show fn')) fnimps
988+ fn')) fnimps
989 tryAll tacs
989 tryAll tacs
990 when autoSolve solveAll
990 when autoSolve solveAll
991 where isImp (PImp _ _ _ _ _) = True
991 where isImp (PImp _ _ _ _ _) = True
@@ -1589,9 +1589,6 @@ reflectErr (CantResolve t) = raw_apply (Var $ reflErrName "CantResolve") [reflec
1589reflectErr (CantResolveAlts ss) =
1589reflectErr (CantResolveAlts ss) =
1590 raw_apply (Var $ reflErrName "CantResolveAlts")
1590 raw_apply (Var $ reflErrName "CantResolveAlts")
1591 [rawList (Var $ (sUN "String")) (map Var ss)]
1591 [rawList (Var $ (sUN "String")) (map Var ss)]
1592−reflectErr (CantResolveTactics ss) =
1593− raw_apply (Var $ reflErrName "CantResolveTactics")
1594− [rawList (Var $ (sUN "String")) (map (RConstant . Str) ss)]
1595reflectErr (IncompleteTerm t) = raw_apply (Var $ reflErrName "IncompleteTerm") [reflect t]
1592reflectErr (IncompleteTerm t) = raw_apply (Var $ reflErrName "IncompleteTerm") [reflect t]
1596reflectErr UniverseError = Var $ reflErrName "UniverseError"
1593reflectErr UniverseError = Var $ reflErrName "UniverseError"
1597reflectErr ProgramLineComment = Var $ reflErrName "ProgramLineComment"
1594reflectErr ProgramLineComment = Var $ reflErrName "ProgramLineComment"