@@ -270,8 +270,6 @@ reifyTTNameApp t [sn]
270270 | t == reflm "MetaN" =
271271 MetaN <$> reifyTTName n1 <*> reifyTTName n2
272272 reifySN t args = fail $ "Can't reify special name " ++ show t ++ show args
273−reifyTTNameApp t []
274− | t == reflm "NErased" = return NErased
275273reifyTTNameApp t args = fail ("Unknown reflection term name: " ++ show (t, args))
276274
277275reifyTTNamespace :: Term -> ElabD [String]
@@ -679,7 +677,6 @@ reflectName (NS n ns)
679677 ]
680678reflectName (MN i n)
681679 = reflCall "MN" [RConstant (I i), RConstant (Str (str n))]
682−reflectName NErased = Var (reflm "NErased")
683680reflectName (SN sn) = raw_apply (Var (reflm "SN")) [reflectSpecialName sn]
684681reflectName (SymRef _) = error "The impossible happened: symbol table ref survived IBC loading"
685682
@@ -963,7 +960,7 @@ reifyReportPart (App _ (P (DCon _ _ _) n _) (Constant (Str msg))) | n == reflm "
963960 Right (TextPart msg)
964961reifyReportPart (App _ (P (DCon _ _ _) n _) ttn)
965962 | 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
967964 Error e -> Left . InternalMsg $
968965 "could not reify name term " ++
969966 show ttn ++
@@ -971,7 +968,7 @@ reifyReportPart (App _ (P (DCon _ _ _) n _) ttn)
971968 OK (n', _)-> Right $ NamePart n'
972969reifyReportPart (App _ (P (DCon _ _ _) n _) tm)
973970 | 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
975972 Error e -> Left . InternalMsg $
976973 "could not reify reflected term " ++
977974 show tm ++
@@ -979,7 +976,7 @@ reifyReportPart (App _ (P (DCon _ _ _) n _) tm)
979976 OK (tm', _) -> Right $ TermPart tm'
980977reifyReportPart (App _ (P (DCon _ _ _) n _) tm)
981978 | 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
983980 Error e -> Left . InternalMsg $
984981 "could not reify reflected raw term " ++
985982 show tm ++