From 949d12e2c6de4c2720c7445638ebf91dc40c3505 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Tue, 17 Jul 2012 13:45:52 -0600 Subject: [PATCH] revert use of `lazy-require' in `racket/match' implementation Using `lazy-require' under `begin-for-syntax' expands to a use of `define-runtime-path' under `begin'for-syntax'. Unfortunately, `define-runtime-path' doesn't yet work with `raco exe' when it appears under `begin-for-syntax'. Although `define-runtime-path' should be fixed, it may take a while. Meanwhile, reverting the change allows programs that require `racket/gui/base' to work with `raco exe'. There's another `lazy-require' under `begin-for-syntax' that doesn't seem to cause the same trouble, though. --- collects/racket/match/define-forms.rkt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/collects/racket/match/define-forms.rkt b/collects/racket/match/define-forms.rkt index 61359627dc..dab3e38e23 100644 --- a/collects/racket/match/define-forms.rkt +++ b/collects/racket/match/define-forms.rkt @@ -5,11 +5,8 @@ (only-in racket/list append* remove-duplicates) unstable/sequence syntax/parse - unstable/lazy-require)) - -(begin-for-syntax - (lazy-require [racket/match/patterns (bound-vars)] - [racket/match/gen-match (go parse-id go/one)])) + (only-in racket/match/patterns bound-vars) + (only-in racket/match/gen-match go go/one))) (provide define-forms)