Skip to content

Commit 858d6d4

Browse files
committed
maintain Location as struct type
1 parent d01ea97 commit 858d6d4

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

typed-racket-more/typed/xml.rkt

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,15 @@
1818
(Pair Symbol (Pair (Listof XExpr-Attribute) (Listof XExpr)))
1919
(Pair Symbol (Listof XExpr))))
2020

21-
(require/typed xml
21+
(require/typed/provide xml
2222
[#:struct location
2323
([line : (U False Exact-Nonnegative-Integer)]
2424
[char : (U False Exact-Nonnegative-Integer)]
25-
[offset : Exact-Nonnegative-Integer])])
26-
27-
(define-type Location
28-
(U location Symbol False))
29-
30-
(require/typed/provide xml
25+
[offset : Exact-Nonnegative-Integer])
26+
#:type-name Location]
3127
[#:struct source
32-
([start : Location]
33-
[stop : Location])
28+
([start : (U Location Symbol False)]
29+
[stop : (U Location Symbol False)])
3430
#:type-name Source]
3531
[#:struct external-dtd
3632
([system : String])

0 commit comments

Comments
 (0)