Skip to content

Commit 3e399f6

Browse files
committed
rep: repair def-structrual
type rep constructor names needs to exported for cross-module unserialization
1 parent 23a1a49 commit 3e399f6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

typed-racket-lib/typed-racket/rep/type-rep.rkt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,12 @@
185185
#:with fld-frees #'(make-invariant (frees name))))
186186
(syntax-parse stx
187187
[(_ name:var-name ((~var flds (structural-flds #'frees)) ...) . rst)
188-
(with-syntax ([contructor-name (format-id #'name "make-~a-rep" (syntax-e #'name))]
188+
(with-syntax ([constructor-name (format-id #'name "make-~a-rep" (syntax-e #'name))]
189189
[type-constructor-name (format-id #'name "make-~a" (syntax-e #'name))])
190190
(define arity (length (syntax->list #'(flds ...))))
191191
(quasisyntax/loc stx
192192
(begin
193193
(def-rep (name #:constructor-name constructor-name) ([flds.name Type?] ...)
194-
#:no-provide (constructor-name)
195194
[#:parent Type]
196195
[#:frees (frees) . #,(if (= 1 (length (syntax->list #'(flds.name ...))))
197196
#'(flds.fld-frees ...)

0 commit comments

Comments
 (0)