Print names using the name, ignoring aliases.
original commit: 7c32898cb29bb6baee4591bc05fa96621ff1d6d1
This commit is contained in:
parent
aa087d75db
commit
aa6d48e80f
|
@ -6,7 +6,7 @@
|
|||
|
||||
;; do we attempt to find instantiations of polymorphic types to print?
|
||||
;; FIXME - currently broken
|
||||
(define print-poly-types? #f)
|
||||
(define print-poly-types? #t)
|
||||
;; do we use simple type aliases in printing
|
||||
(define print-aliases #t)
|
||||
|
||||
|
@ -117,8 +117,8 @@
|
|||
[(? Rep-stx a)
|
||||
(fp "~a" (syntax->datum (Rep-stx a)))]
|
||||
[(Univ:) (fp "Any")]
|
||||
;; special case number until something better happens
|
||||
;;[(Base: 'Number _) (fp "Number")]
|
||||
;; names are just the printed as the original syntax
|
||||
[(Name: stx) (fp "~a" (syntax-e stx))]
|
||||
[(app has-name? (? values name))
|
||||
(fp "~a" name)]
|
||||
[(StructTop: st) (fp "~a" st)]
|
||||
|
@ -126,8 +126,6 @@
|
|||
[(ChannelTop:) (fp "Channel")]
|
||||
[(VectorTop:) (fp "Vector")]
|
||||
[(MPairTop:) (fp "MPair")]
|
||||
;; names are just the printed as the original syntax
|
||||
[(Name: stx) (fp "~a" (syntax-e stx))]
|
||||
[(App: rator rands stx)
|
||||
(fp "~a" (list* rator rands))]
|
||||
;; special cases for lists
|
||||
|
|
Loading…
Reference in New Issue
Block a user