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 racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/20200515120026.ski2o43crgtnsnr3%40topoi.pooq.com.

Reply via email to