use `contract-out` instead of `define/contract`
parent
642ebc436a
commit
13e7f3ee97
@ -1,10 +1,10 @@
|
||||
#lang br/quicklang
|
||||
(require "tokenizer.rkt" "parser.rkt" racket/contract)
|
||||
|
||||
(define/contract (read-syntax path port)
|
||||
(any/c input-port? . -> . syntax?)
|
||||
(define (read-syntax path port)
|
||||
(define parse-tree (parse path (tokenize port)))
|
||||
(define module-datum `(module jsonic-module jsonic-demo-2/expander
|
||||
,parse-tree))
|
||||
(datum->syntax #f module-datum))
|
||||
(provide read-syntax)
|
||||
(provide (contract-out
|
||||
[read-syntax (any/c input-port? . -> . syntax?)]))
|
||||
|
Loading…
Reference in New Issue