Rename SomeSystemPath to `Path-For-Some-System'
This commit is contained in:
parent
d8c972734d
commit
9be4b16703
|
@ -1,12 +1,12 @@
|
|||
#lang typed/racket
|
||||
|
||||
(: unix-path SomeSystemPath)
|
||||
(: unix-path Path-For-Some-System)
|
||||
(define unix-path (string->some-system-path "file.rkt" 'unix))
|
||||
|
||||
(: windows-path SomeSystemPath)
|
||||
(: windows-path Path-For-Some-System)
|
||||
(define windows-path (string->some-system-path "file.rkt" 'windows))
|
||||
|
||||
(for: ((p : SomeSystemPath (list unix-path windows-path)))
|
||||
(for: ((p : Path-For-Some-System (list unix-path windows-path)))
|
||||
(let ((long-path (build-path p 'up 'same p)))
|
||||
(unless (path-for-some-system? p)
|
||||
(error "Predicate failed"))
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#lang s-exp "type-env-lang.rkt"
|
||||
|
||||
(provide (rename-out [Path-For-Some-System SomeSystemPath]))
|
||||
|
||||
[Complex -Number]
|
||||
[Number -Number]
|
||||
[Inexact-Complex -InexactComplex]
|
||||
|
@ -77,7 +79,7 @@
|
|||
[Any Univ]
|
||||
[Port -Port]
|
||||
[Path -Path]
|
||||
[SomeSystemPath -SomeSystemPath]
|
||||
[Path-For-Some-System -SomeSystemPath]
|
||||
[Path-String -Pathlike]
|
||||
[Regexp -Regexp]
|
||||
[PRegexp -PRegexp]
|
||||
|
|
Loading…
Reference in New Issue
Block a user