Skip to content

Instantly share code, notes, and snippets.

@samth
Created March 20, 2012 16:50
Show Gist options
  • Save samth/2138153 to your computer and use it in GitHub Desktop.
Save samth/2138153 to your computer and use it in GitHub Desktop.
Using submodules to avoid extra files
#lang racket
(module m racket
(define-for-syntax x 1)
(provide (for-syntax x)))
(require 'm)
(define-syntax (mac stx) (datum->syntax #'here x))
(require (for-template 'm))
(provide x mac)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment