@@ -218,6 +218,7 @@ data IdeSlaveCommand = REPLCompletions String
218 | TermNormalise [(Name, Bool)] Term
218 | TermNormalise [(Name, Bool)] Term
219 | TermShowImplicits [(Name, Bool)] Term
219 | TermShowImplicits [(Name, Bool)] Term
220 | TermNoImplicits [(Name, Bool)] Term
220 | TermNoImplicits [(Name, Bool)] Term
222sexpToCommand :: SExp -> Maybe IdeSlaveCommand
223sexpToCommand :: SExp -> Maybe IdeSlaveCommand
223sexpToCommand (SexpList (x:[])) = sexpToCommand x
224sexpToCommand (SexpList (x:[])) = sexpToCommand x
@@ -260,6 +261,7 @@ sexpToCommand (SexpList [SymbolAtom "show-term-implicits", StringAtom encoded])
260 Just (TermShowImplicits bnd tm)
261 Just (TermShowImplicits bnd tm)
261sexpToCommand (SexpList [SymbolAtom "hide-term-implicits", StringAtom encoded]) = let (bnd, tm) = decodeTerm encoded in
262sexpToCommand (SexpList [SymbolAtom "hide-term-implicits", StringAtom encoded]) = let (bnd, tm) = decodeTerm encoded in
262 Just (TermNoImplicits bnd tm)
263 Just (TermNoImplicits bnd tm)
264+sexpToCommand (SexpList [SymbolAtom "print-definition", StringAtom name]) = Just (PrintDef name)
263sexpToCommand _ = Nothing
265sexpToCommand _ = Nothing
265parseMessage :: String -> Either Err (SExp, Integer)
267parseMessage :: String -> Either Err (SExp, Integer)