@@ -270,8 +270,6 @@ reifyTTNameApp t [sn]
270 | t == reflm "MetaN" =
270 | t == reflm "MetaN" =
271 MetaN <$> reifyTTName n1 <*> reifyTTName n2
271 MetaN <$> reifyTTName n1 <*> reifyTTName n2
272 reifySN t args = fail $ "Can't reify special name " ++ show t ++ show args
272 reifySN t args = fail $ "Can't reify special name " ++ show t ++ show args
274− | t == reflm "NErased" = return NErased
275reifyTTNameApp t args = fail ("Unknown reflection term name: " ++ show (t, args))
273reifyTTNameApp t args = fail ("Unknown reflection term name: " ++ show (t, args))
277reifyTTNamespace :: Term -> ElabD [String]
275reifyTTNamespace :: Term -> ElabD [String]
@@ -679,7 +677,6 @@ reflectName (NS n ns)
680reflectName (MN i n)
678reflectName (MN i n)
681 = reflCall "MN" [RConstant (I i), RConstant (Str (str n))]
679 = reflCall "MN" [RConstant (I i), RConstant (Str (str n))]
682−reflectName NErased = Var (reflm "NErased")
683reflectName (SN sn) = raw_apply (Var (reflm "SN")) [reflectSpecialName sn]
680reflectName (SN sn) = raw_apply (Var (reflm "SN")) [reflectSpecialName sn]
684reflectName (SymRef _) = error "The impossible happened: symbol table ref survived IBC loading"
681reflectName (SymRef _) = error "The impossible happened: symbol table ref survived IBC loading"
@@ -963,7 +960,7 @@ reifyReportPart (App _ (P (DCon _ _ _) n _) (Constant (Str msg))) | n == reflm "
963 Right (TextPart msg)
960 Right (TextPart msg)
964reifyReportPart (App _ (P (DCon _ _ _) n _) ttn)
961reifyReportPart (App _ (P (DCon _ _ _) n _) ttn)
965 | n == reflm "NamePart" =
962 | n == reflm "NamePart" =
966− case runElab initEState (reifyTTName ttn) (initElaborator NErased initContext emptyContext Erased) of
963+ case runElab initEState (reifyTTName ttn) (initElaborator (sMN 0 "hole") initContext emptyContext Erased) of
967 Error e -> Left . InternalMsg $
964 Error e -> Left . InternalMsg $
968 "could not reify name term " ++
965 "could not reify name term " ++
969 show ttn ++
966 show ttn ++
@@ -971,7 +968,7 @@ reifyReportPart (App _ (P (DCon _ _ _) n _) ttn)
971 OK (n', _)-> Right $ NamePart n'
968 OK (n', _)-> Right $ NamePart n'
972reifyReportPart (App _ (P (DCon _ _ _) n _) tm)
969reifyReportPart (App _ (P (DCon _ _ _) n _) tm)
973 | n == reflm "TermPart" =
970 | n == reflm "TermPart" =
974− case runElab initEState (reifyTT tm) (initElaborator NErased initContext emptyContext Erased) of
971+ case runElab initEState (reifyTT tm) (initElaborator (sMN 0 "hole") initContext emptyContext Erased) of
975 Error e -> Left . InternalMsg $
972 Error e -> Left . InternalMsg $
976 "could not reify reflected term " ++
973 "could not reify reflected term " ++
977 show tm ++
974 show tm ++
@@ -979,7 +976,7 @@ reifyReportPart (App _ (P (DCon _ _ _) n _) tm)
979 OK (tm', _) -> Right $ TermPart tm'
976 OK (tm', _) -> Right $ TermPart tm'
980reifyReportPart (App _ (P (DCon _ _ _) n _) tm)
977reifyReportPart (App _ (P (DCon _ _ _) n _) tm)
981 | n == reflm "RawPart" =
978 | n == reflm "RawPart" =
982− case runElab initEState (reifyRaw tm) (initElaborator NErased initContext emptyContext Erased) of
979+ case runElab initEState (reifyRaw tm) (initElaborator (sMN 0 "hole") initContext emptyContext Erased) of
983 Error e -> Left . InternalMsg $
980 Error e -> Left . InternalMsg $
984 "could not reify reflected raw term " ++
981 "could not reify reflected raw term " ++
985 show tm ++
982 show tm ++