Fix tc/letrec-values contract and document require-typed-signature
This commit is contained in:
parent
2ad3dc5f75
commit
cbb76b987c
|
@ -181,6 +181,11 @@ keyword with @racket[require/typed].}
|
|||
keyword with @racket[require/typed].}
|
||||
@defidform[require-typed-struct/provide]{Similar to
|
||||
@racket[require-typed-struct], but also provides the imported identifiers.}
|
||||
@defform[
|
||||
(require-typed-signature sig-name (id ...) (type ...) module)]{
|
||||
Similar to using the @racket[#:signature] keyword with @racket[require/typed].
|
||||
Signature variables are matched with their types positionally, the two lists
|
||||
must have the same length.}
|
||||
@defidform[pdefine:]{Defines a polymorphic function.}
|
||||
@defform[(pred t)]{Equivalent to @racket[(Any -> Boolean : t)].}
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
|
||||
(define-signature tc-let^
|
||||
([cond-contracted tc/let-values ((syntax? syntax? syntax?) ((or/c #f tc-results/c)) . ->* . full-tc-results/c)]
|
||||
[cond-contracted tc/letrec-values ((syntax? syntax? syntax?) ((or/c #f tc-results/c)) . ->* . full-tc-results/c)]))
|
||||
[cond-contracted tc/letrec-values ((syntax? syntax? syntax?) ((or/c #f tc-results/c) (-> any)) . ->* . full-tc-results/c)]))
|
||||
|
||||
(define-signature tc-dots^
|
||||
([cond-contracted tc/dots (syntax? . -> . (values Type/c symbol?))]))
|
||||
|
|
Loading…
Reference in New Issue
Block a user