(define xtmdoc-typealias-handler
(lambda (name-sym)
(list
'(category . "type alias")
(cons 'name (symbol->string name-sym))
(list 'args)
(cons 'type (impc:ir:pretty-print-type (impc:ti:get-typealias-ground-type (symbol->string name-sym))))
(cons 'docstring
(let ((docstring (impc:ti:get-typealias-docstring (symbol->string name-sym))))
(if (string=? docstring "") '() docstring))))))