PasteRack.org
Paste # 25649
2017-03-21 14:06:46

Fork as a new paste.

Paste viewed 88 times.


Embed:

  1. #lang racket/base
  2.  
  3. ; works when pasted into the repl
  4. ; fails when run as a file
  5. (module test racket/base
  6.   (provide hello-world provide define #%module-begin #%app)
  7.   (define hello-world (lambda () "HELLO")))
  8.  
  9. (module test2 (submod ".." test)
  10.   (provide call-hw)
  11.   (define (call-hw) (hello-world)))
  12.  
  13. (require 'test2)
  14. (call-hw)

=>

"HELLO"