Use type aliases when printing full types.

Reduces the printout size significantly.

original commit: 34ee1d26032f84cd67a7835b66e3bddbdce8d497
This commit is contained in:
Vincent St-Amour 2012-08-06 16:35:54 -04:00
parent 30e80ee604
commit 0b962a8f5d

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)]))))]