@@ -780,6 +780,9 @@ process fn (Undefine names) = undefine names
780 else do tclift $ tfail $ Msg ("Can't undefine " ++ show n ++ " because it wasn't defined at the repl")
780 else do tclift $ tfail $ Msg ("Can't undefine " ++ show n ++ " because it wasn't defined at the repl")
781 undefine' names already
781 undefine' names already
782 undefOne n = do fputState (ctxt_lookup n . known_terms) Nothing
782 undefOne n = do fputState (ctxt_lookup n . known_terms) Nothing
783+ -- for now just assume it's a class. Eventually we'll want some kind of
784+ -- smart detection of exactly what kind of name we're undefining.
785+ fputState (ctxt_lookup n . known_classes) Nothing
783 fmodifyState repl_definitions (delete n)
786 fmodifyState repl_definitions (delete n)
784 undefClosure n =
787 undefClosure n =
785 do replDefs <- idris_repl_defs `fmap` get
788 do replDefs <- idris_repl_defs `fmap` get