fix the contract on get-module-code
closes PR 11836
This commit is contained in:
parent
b926b17d7e
commit
d1414748a1
|
@ -1,4 +1,4 @@
|
|||
(module modcode scheme/base
|
||||
#lang racket/base
|
||||
(require mzlib/port
|
||||
racket/contract
|
||||
"modread.ss")
|
||||
|
@ -21,7 +21,7 @@
|
|||
#:choose
|
||||
(path? path? path? . -> . (or/c (symbols 'src 'zo 'so) false/c))
|
||||
#:notify (any/c . -> . any)
|
||||
#:source-reader (any/c input-port? . -> . syntax?)
|
||||
#:source-reader (any/c input-port? . -> . (or/c syntax? eof-object?))
|
||||
#:rkt-try-ss? boolean?)
|
||||
any)])
|
||||
|
||||
|
@ -180,4 +180,5 @@
|
|||
[else (raise (make-exn:get-module-code
|
||||
(format "get-module-code: no such file: ~e" orig-path)
|
||||
(current-continuation-marks)
|
||||
#f))])))))
|
||||
#f))]))))
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
(lambda (src zo so) #f)]
|
||||
[#:notify notify-proc (any/c . -> . any) void]
|
||||
[#:source-reader read-syntax-proc
|
||||
(any/c input-port? . -> . syntax?)
|
||||
(any/c input-port? . -> . (or/c syntax? eof-object?))
|
||||
read-syntax])
|
||||
any]{
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user