re-enable printing

svn: r13581
This commit is contained in:
Sam Tobin-Hochstadt 2009-02-14 20:48:26 +00:00
parent e198478055
commit 7830091d42
4 changed files with 6 additions and 4 deletions

View File

@ -539,7 +539,9 @@
[maybe-print-message (-String . -> . -Void)]
;; scheme/list
[last-pair (-poly (a) ((-mu x (Un a (-val '()) (-pair a x))) . -> . (Un (-pair a a) (-pair a (-val '())))))]
[last-pair (-poly (a) ((-mu x (Un a (-val '()) (-pair a x)))
. -> .
(Un (-pair a a) (-pair a (-val '())))))]
;; scheme/tcp
[tcp-listener? (make-pred-ty -TCP-Listener)]

View File

@ -9,7 +9,7 @@
;; FIXME - currently broken
(define print-poly-types? #f)
;; do we use simple type aliases in printing
(define print-aliases #f)
(define print-aliases #t)
;; does t have a type name associated with it currently?
;; has-name : Type -> Maybe[Symbol]

View File

@ -53,7 +53,7 @@
(if (andmap Values? types)
(make-Values (apply map Un (map Values-types types)))
(int-err "Un: should not take the union of multiple values with some other type: ~a" types))]
[else (make-union* #;(remove-subtypes types) (foldr union2 (list) (remove-subtypes types)))]))]))
[else (make-union* #;(remove-subtypes types) (foldr union2 '() (remove-subtypes types)))]))]))
#;(defintern (Un-intern args) (lambda (_ args) (apply Un args)) args)

View File

@ -166,7 +166,7 @@
[(_ val)
#'(? (lambda (x) (equal? val x)))])))
(define-for-syntax printing? #f)
(define-for-syntax printing? #t)
(define print-type* (box (lambda _ (error "print-type* not yet defined"))))
(define print-effect* (box (lambda _ (error "print-effect* not yet defined"))))