@@ -780,6 +780,9 @@ process fn (Undefine names) = undefine names
780780 else do tclift $ tfail $ Msg ("Can't undefine " ++ show n ++ " because it wasn't defined at the repl")
781781 undefine' names already
782782 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
783786 fmodifyState repl_definitions (delete n)
784787 undefClosure n =
785788 do replDefs <- idris_repl_defs `fmap` get