@@ -201,7 +201,9 @@ renderExternal fmt width doc
201201 decorate HTMLOutput (AnnName _ _ _ _) = id
202202 decorate HTMLOutput (AnnBoundName _ True) = tag "idris-bound idris-implicit" Nothing
203203 decorate HTMLOutput (AnnBoundName _ False) = tag "idris-bound" Nothing
204− decorate HTMLOutput (AnnConst _) = id -- TODO
204+ decorate HTMLOutput (AnnConst c) =
205+ tag (if constIsType c then "idris-type" else "idris-data")
206+ (Just $ constDocs c)
205207 decorate HTMLOutput (AnnData _ _) = tag "idris-data" Nothing
206208 decorate HTMLOutput (AnnType _ _) = tag "idris-type" Nothing
207209 decorate HTMLOutput AnnKeyword = tag "idris-keyword" Nothing
@@ -222,7 +224,8 @@ renderExternal fmt width doc
222224 decorate LaTeXOutput (AnnName _ _ _ _) = id
223225 decorate LaTeXOutput (AnnBoundName _ True) = latex "IdrisImplicit"
224226 decorate LaTeXOutput (AnnBoundName _ False) = latex "IdrisBound"
225− decorate LaTeXOutput (AnnConst _) = id -- TODO
227+ decorate LaTeXOutput (AnnConst c) =
228+ latex $ if constIsType c then "IdrisType" else "IdrisData"
226229 decorate LaTeXOutput (AnnData _ _) = latex "IdrisData"
227230 decorate LaTeXOutput (AnnType _ _) = latex "IdrisType"
228231 decorate LaTeXOutput AnnKeyword = latex "IdrisKeyword"