TL; DR: . -, . -, scribble/lp2, .
- (begin β¦), , .
@chunk[<*>
(begin
(module main typed/racket
(define a : Number 1)
(provide a)
(module moo racket/base 'β¦)
(module+ test
(require typed/rackunit)
(check-equal? a (+ 1/2 1/2))))
(require 'main)
(provide (all-from-out 'main))
(module test typed/racket
(require (submod ".." main test))))]
, , test main, . (module+ test β¦) main, test . (module test , .
moo , (require (submod "myfile.lp2.typed.rkt" main moo)) "", test main.
, , / ( , ). / , / . , (begin-for-syntax (displayln 'executed)) , .
scribble/lp2, hyper-literate ( ) scribble/lp2 scribble .
, , chunk, .. stackoverflow-q-18877881, . master.
. test/test.hl.rkt:
@(require (for-label typed/racket/base
typed/rackunit))
@title{Title}
Hello world.
@chunk[<*>
(require typed/rackunit)
;; Would give an error as typed/racket/base is used on the
;curry
(check-equal? ((make-predicate One) 1)
(define (f [x : 'e123]) x)
(define ee (ann (f 'e123) 'e123))
(provide ee)]