Add support for use-dir? param of in-directory

Closes #21.
This commit is contained in:
Alexis King 2015-01-30 17:09:50 -08:00 committed by Sam Tobin-Hochstadt
parent 7122d93de8
commit 032a11fdae
2 changed files with 2 additions and 1 deletions

View File

@ -144,7 +144,7 @@
(->opt [-Input-Port -Symbol] (-seq -Bytes))]
;; in-directory
[(make-template-identifier '*in-directory 'racket/private/for)
(->opt [(Un (-val #f) -Pathlike)] (-seq -Path))]
(->opt [(Un (-val #f) -Pathlike) (-> -Path Univ)] (-seq -Path))]
;; in-producer
[(make-template-identifier 'in-producer 'racket/private/for)
(-polydots (a b)

View File

@ -128,6 +128,7 @@
;; more sequences
[tc-e (sequence-ref (in-directory) 0) -Path]
[tc-e (sequence-ref (in-directory "foo" (λ (p) #t)) 0) -Path]
[tc-e (in-mlist (ann (mcons 'a null) (MListof 'a))) (-seq (-val 'a))]
[tc-e (in-producer (λ () 'hi)) (-seq (-val 'hi))]
[tc-e (in-producer (λ: ([x : String]) 'hi) symbol? "foo")