Use type aliases when printing full types.

Reduces the printout size significantly.
This commit is contained in:
Vincent St-Amour 2012-08-06 16:35:54 -04:00
parent 7eaae20f41
commit 34ee1d2603

View File

@ -55,8 +55,8 @@
#`(display #,(format "~a\n" (parse-type #'ty)))]
;; Prints the _entire_ type. May be quite large.
[(_ . ((~literal :print-type) e:expr))
#`(display #,(format "~a\n"
(tc-setup #'stx #'e 'top-level expanded init tc-toplevel-form before type
#`(display #,(tc-setup #'stx #'e 'top-level expanded init tc-toplevel-form before type
(format "~a\n"
(match type
[(tc-result1: t f o) t]
[(tc-results: t) (cons 'Values t)]))))]