Don't use teach-equal?' for
one-of' signature.
I did this under the mistaken assumption `equal?' would not work for cycles, I think.
This commit is contained in:
parent
22f1c96a4a
commit
dbd1cfaf10
|
@ -11,8 +11,7 @@
|
|||
scheme/promise
|
||||
(for-syntax scheme/base)
|
||||
(for-syntax syntax/stx)
|
||||
(for-syntax stepper/private/shared)
|
||||
(only-in lang/private/teachprims teach-equal?))
|
||||
(for-syntax stepper/private/shared))
|
||||
|
||||
(define-for-syntax (phase-lift stx)
|
||||
(with-syntax ((?stx stx))
|
||||
|
@ -50,7 +49,7 @@
|
|||
(syntax->list #'((?temp ?exp) ...)))))
|
||||
#'(let ((?temp ?exp) ...)
|
||||
?check ...
|
||||
(make-case-signature '?name (list ?temp ...) teach-equal? ?stx)))))
|
||||
(make-case-signature '?name (list ?temp ...) equal? ?stx)))))
|
||||
((predicate ?exp)
|
||||
(with-syntax ((?stx (phase-lift stx))
|
||||
(?name name))
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
(for-syntax scheme/base)
|
||||
(for-syntax syntax/stx)
|
||||
(for-syntax stepper/private/shared)
|
||||
(only-in lang/private/teachprims teach-equal?)
|
||||
(for-syntax "firstorder.rkt"))
|
||||
|
||||
(define-for-syntax (phase-lift stx)
|
||||
|
@ -50,7 +49,7 @@
|
|||
(syntax->list #'((?temp ?exp) ...)))))
|
||||
#'(let ((?temp ?exp) ...)
|
||||
?check ...
|
||||
(make-case-signature '?name (list ?temp ...) teach-equal? ?stx)))))
|
||||
(make-case-signature '?name (list ?temp ...) equal? ?stx)))))
|
||||
((predicate ?exp)
|
||||
(with-syntax ((?stx (phase-lift stx))
|
||||
(?name name))
|
||||
|
|
Loading…
Reference in New Issue
Block a user