Skip to content

Commit 4ab8e2e

Browse files
committed
Don't actually generate contracts ahead of time.
Since GUI types are rarely used in practice on typed/untyped boundaries (they were mostly removed from plot) it's not clear that adding all of them to the zo size of "typed-racket-more" is the right thing. This makes the current change just set up the infrastructure.
1 parent bcaba5b commit 4ab8e2e

File tree

4 files changed

+4
-25
lines changed

4 files changed

+4
-25
lines changed

typed-racket-more/typed/framework.rkt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#lang s-exp typed-racket/base-env/extra-env-lang #:contract-defs
1+
#lang s-exp typed-racket/base-env/extra-env-lang
22

33
;; A typed wrapper for the framework library
44

@@ -92,9 +92,6 @@
9292
(require "racket/generate-predef-con.rkt"
9393
typed-racket/base-env/base-types-extra)
9494

95-
(generate-contract-submods
96-
[(Instance Canvas:Basic%) impersonator (typed untyped both)])
97-
9895
(type-environment
9996
[application:current-app-name (-Param -String)]
10097
;; 3 Autosave

typed-racket-more/typed/racket/draw.rkt

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#lang s-exp typed-racket/base-env/extra-env-lang #:contract-defs
1+
#lang s-exp typed-racket/base-env/extra-env-lang
22

33
;; This module provides a base type environment including
44
;; racket/draw bindings
@@ -85,15 +85,6 @@
8585
(require "generate-predef-con.rkt"
8686
typed-racket/base-env/base-types-extra)
8787

88-
(generate-contract-submods
89-
[(Instance Bitmap%) impersonator (typed untyped both)]
90-
[(Instance Bitmap-DC%) impersonator (typed untyped both)]
91-
[(Instance Color%) impersonator (typed untyped both)]
92-
[(Instance Font%) impersonator (typed untyped both)]
93-
[(Instance DC<%>) impersonator (typed untyped both)]
94-
[(Instance Snip%) impersonator (typed untyped both)])
95-
96-
9788
(type-environment
9889
[bitmap% (parse-type #'Bitmap%)]
9990
[bitmap-dc% (parse-type #'Bitmap-DC%)]

typed-racket-more/typed/racket/gui/base.rkt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#lang s-exp typed-racket/base-env/extra-env-lang #:contract-defs
1+
#lang s-exp typed-racket/base-env/extra-env-lang
22

33
;; This module provides a base type environment including
44
;; most GUI library bindings
@@ -27,12 +27,6 @@
2727
(require "../generate-predef-con.rkt"
2828
typed-racket/base-env/base-types-extra)
2929

30-
(generate-contract-submods
31-
[(Instance Frame%) impersonator (typed untyped both)]
32-
[(Instance Pane%) impersonator (typed untyped both)]
33-
[(Instance Dialog%) impersonator (typed untyped both)])
34-
35-
3630
(type-environment
3731
[button% (parse-type #'Button%)]
3832
[canvas% (parse-type #'Canvas%)]

typed-racket-more/typed/racket/snip.rkt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#lang s-exp typed-racket/base-env/extra-env-lang #:contract-defs
1+
#lang s-exp typed-racket/base-env/extra-env-lang
22

33
;; This module provides a base type environment including
44
;; racket/snip bindings
@@ -20,9 +20,6 @@
2020
(require "generate-predef-con.rkt"
2121
typed-racket/base-env/base-types-extra)
2222

23-
(generate-contract-submods
24-
[(Instance Snip%) impersonator (typed untyped both)])
25-
2623
(type-environment
2724
[snip% (parse-type #'Snip%)]
2825
[snip-admin% (parse-type #'Snip-Admin%)]

0 commit comments

Comments
 (0)