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