@@ -942,19 +942,21 @@ process fn (Core t)
943process fn (DocStr (Left n) w)
943process fn (DocStr (Left n) w)
944 = do ist <- getIState
944 = do ist <- getIState
946+ "Type" -> iRenderResult $ pprintType1Doc ist
945− let docs = lookupCtxtName n (idris_docstrings ist) ++
947+ _ -> do let docs = lookupCtxtName n (idris_docstrings ist) ++
946− map (\(n,d)-> (n, (d, [])))
948+ map (\(n,d)-> (n, (d, [])))
947− (lookupCtxtName (modDocN n) (idris_moduledocs ist))
949+ (lookupCtxtName (modDocN n) (idris_moduledocs ist))
948− case docs of
950+ case docs of
949− [] -> iPrintError $ "No documentation for " ++ show n
951+ [] -> iPrintError $ "No documentation for " ++ show n
950− ns -> do toShow <- mapM (showDoc ist) ns
952+ ns -> do toShow <- mapM (showDoc ist) ns
951− iRenderResult (vsep toShow)
953+ iRenderResult (vsep toShow)
952− where showDoc ist (n, d) = do doc <- getDocs n w
954+ where showDoc ist (n, d) = do doc <- getDocs n w
953− return $ pprintDocs ist doc
955+ return $ pprintDocs ist doc
955− modDocN (NS (UN n) ns) = NS modDocName (n:ns)
957+ modDocN (NS (UN n) ns) = NS modDocName (n:ns)
956− modDocN (UN n) = NS modDocName [n]
958+ modDocN (UN n) = NS modDocName [n]
957− modDocN _ = sMN 1 "NotFoundForSure"
959+ modDocN _ = sMN 1 "NotFoundForSure"
959process fn (DocStr (Right c) _) -- constants only have overviews
961process fn (DocStr (Right c) _) -- constants only have overviews
960 = do ist <- getIState
962 = do ist <- getIState