@@ -266,6 +266,8 @@ ideslave orig mods
266 process stdout fn (MakeWith False line (sUN name))
266 process stdout fn (MakeWith False line (sUN name))
267 Just (IdeSlave.ProofSearch line name hints) ->
267 Just (IdeSlave.ProofSearch line name hints) ->
268 process stdout fn (DoProofSearch False line (sUN name) (map sUN hints))
268 process stdout fn (DoProofSearch False line (sUN name) (map sUN hints))
269+ Just (IdeSlave.Apropos a) ->
270+ process stdout fn (Apropos a)
269 Nothing -> do iPrintError "did not understand")
271 Nothing -> do iPrintError "did not understand")
270 (\e -> do iPrintError $ show e))
272 (\e -> do iPrintError $ show e))
271 (\e -> do iPrintError $ show e)
273 (\e -> do iPrintError $ show e)
@@ -337,6 +339,8 @@ ideslaveProcess fn (MakeWith False pos str) = process stdout fn (MakeWith False
337ideslaveProcess fn (DoProofSearch False pos str xs) = process stdout fn (DoProofSearch False pos str xs)
339ideslaveProcess fn (DoProofSearch False pos str xs) = process stdout fn (DoProofSearch False pos str xs)
338ideslaveProcess fn (SetConsoleWidth w) = do process stdout fn (SetConsoleWidth w)
340ideslaveProcess fn (SetConsoleWidth w) = do process stdout fn (SetConsoleWidth w)
339 iPrintResult ""
341 iPrintResult ""
342+ideslaveProcess fn (Apropos a) = do process stdout fn (Apropos a)
340ideslaveProcess fn _ = iPrintError "command not recognized or not supported"
344ideslaveProcess fn _ = iPrintError "command not recognized or not supported"
@@ -962,11 +966,14 @@ process h fn (Apropos a) =
962 let aproposInfo = [ (n,
966 let aproposInfo = [ (n,
963 delabTy ist n,
967 delabTy ist n,
964 fmap (overview . fst) (lookupCtxtExact n (idris_docstrings ist)))
968 fmap (overview . fst) (lookupCtxtExact n (idris_docstrings ist)))
965− | n <- names ]
969+ | n <- sort names, isUN n ]
966 ihRenderResult h $ vsep (map (renderApropos impl) aproposInfo)
970 ihRenderResult h $ vsep (map (renderApropos impl) aproposInfo)
967 where renderApropos impl (name, ty, docs) =
971 where renderApropos impl (name, ty, docs) =
968− prettyName impl [] name <+> colon <+> align (prettyImp impl ty) <$>
972+ prettyName True [] name <+> colon <+> align (prettyImp impl ty) <$>
969 fromMaybe empty (fmap (\d -> renderDocstring d <> line) docs)
973 fromMaybe empty (fmap (\d -> renderDocstring d <> line) docs)
975+ isUN (NS n _) = isUN n
971classInfo :: ClassInfo -> Idris ()
978classInfo :: ClassInfo -> Idris ()
972classInfo ci = do iputStrLn "Methods:\n"
979classInfo ci = do iputStrLn "Methods:\n"