@@ -218,6 +218,7 @@ data IdeSlaveCommand = REPLCompletions String
218218 | TermNormalise [(Name, Bool)] Term
219219 | TermShowImplicits [(Name, Bool)] Term
220220 | TermNoImplicits [(Name, Bool)] Term
221+ | PrintDef String
221222
222223sexpToCommand :: SExp -> Maybe IdeSlaveCommand
223224sexpToCommand (SexpList (x:[])) = sexpToCommand x
@@ -260,6 +261,7 @@ sexpToCommand (SexpList [SymbolAtom "show-term-implicits", StringAtom encoded])
260261 Just (TermShowImplicits bnd tm)
261262sexpToCommand (SexpList [SymbolAtom "hide-term-implicits", StringAtom encoded]) = let (bnd, tm) = decodeTerm encoded in
262263 Just (TermNoImplicits bnd tm)
264+sexpToCommand (SexpList [SymbolAtom "print-definition", StringAtom name]) = Just (PrintDef name)
263265sexpToCommand _ = Nothing
264266
265267parseMessage :: String -> Either Err (SExp, Integer)