Skip to content

Instantly share code, notes, and snippets.

@ddeaguiar
Last active January 2, 2016 02:59
Show Gist options
  • Save ddeaguiar/8240420 to your computer and use it in GitHub Desktop.
Save ddeaguiar/8240420 to your computer and use it in GitHub Desktop.
Racket submodule example
#lang racket
(module foo racket
(module bar typed/racket ;;submodules can leverage different languages
(provide baz three)
(define: three : Number 3)
(define (baz) '(foo bar baz))
(define (bit) '(this is private))))
(require (submod 'foo bar))
(baz)
three
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment