PasteRack.org
Paste # 94989
2017-03-21 14:04:22

Fork as a new paste.

Paste viewed 54 times.


Embed:

module problems

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

=>