Skip to content

Instantly share code, notes, and snippets.

Created September 11, 2014 03:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/13ae7b5ebdcdc57c7e0d to your computer and use it in GitHub Desktop.
Save anonymous/13ae7b5ebdcdc57c7e0d to your computer and use it in GitHub Desktop.
(define-module (bar)
#:use-module (foo)
#:export (bar))
(define (bar) (make-foo 0))
(define-module (foo)
#:use-module (bar)
#:use-module (srfi srfi-9)
#:export (make-foo))
(define-record-type <foo>
(make-foo x)
foo?
(x foo-x))
(add-to-load-path (dirname (current-filename)))
(use-modules (foo))
(use-modules (bar))
(define b (bar)) ;; ERROR: Wrong type to apply: #<syntax-transformer make-foo>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment