How does one provide a method to print strutures in typed Racket?

(struct parameter
  ([type : XML] [name : Symbol] [len : (Option String)] [const? : Boolean] 
[stars : Integer])
  #:methods gen:custom-write [(define write-proc parameter-print)]

seems not to work.  But something like this did work in untyped Racket.
Is there some other way to do this?

-- hendrik

You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To view this discussion on the web visit

Reply via email to