@@ -663,6 +663,13 @@ process h fn (Eval t)
663663 tyDoc = pprintDelab ist ty'
664664 ihPrintTermWithType h tmDoc tyDoc
665665
666+process h fn (NewDefn name val)
667+ = do (tm, ty) <- elabVal toplevel False val
668+ ctxt <- getContext
669+ let tm' = force (normaliseAll ctxt [] tm)
670+ let ty' = force (normaliseAll ctxt [] ty)
671+ updateContext (addCtxtDef name (Function ty' tm'))
672+
666673process h fn (ExecVal t)
667674 = do ctxt <- getContext
668675 ist <- getIState