Created
          July 26, 2012 06:21 
        
      - 
      
- 
        Save takikawa/3180554 to your computer and use it in GitHub Desktop. 
    lift a definition?
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #lang racket | |
| (module bar racket | |
| (define-syntax (foo stx) | |
| (syntax-case stx () | |
| [(_ x) | |
| (begin (syntax-local-lift-module-end-declaration | |
| #'(define/contract x integer? 5)) | |
| #'(void))])) | |
| (foo x) | |
| (provide x)) | |
| (require 'bar) | |
| x | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment