Split legacy Typed Racket languages into their own module.

original commit: 9a67230ae0eb04f5e6667dd5e05a64e9e5789edd
This commit is contained in:
Vincent St-Amour 2013-12-05 17:49:08 -05:00
parent b24a9cac44
commit 670bde6aad
21 changed files with 53 additions and 15 deletions

View File

@ -0,0 +1,10 @@
typed-racket-lib
Copyright (c) 2010-2013 PLT Design Inc.
This package is distributed under the GNU Lesser General Public
License (LGPL). This means that you can link Racket into proprietary
applications, provided you follow the rules stated in the LGPL. You
can also modify this package; if you distribute a modified version,
you must distribute it under the terms of the LGPL, which in
particular means that you must release the source code for the
modified software. See COPYING_LESSER.txt for more information.

View File

@ -0,0 +1,12 @@
#lang info
(define collection 'multi)
(define deps '("scheme-lib"
"typed-racket-lib"
"base"))
(define pkg-desc "compatibility library for older Typed Racket-based languages")
(define pkg-authors '(samth stamourv))

View File

@ -0,0 +1,4 @@
#lang typed-racket/minimal
(require racket/require typed/racket/no-check (subtract-in typed/scheme typed/racket/no-check))
(provide (all-from-out typed/scheme typed/racket/no-check))

View File

@ -0,0 +1,4 @@
#lang typed-racket/minimal
(require racket/require typed/racket/no-check (subtract-in typed/scheme/base typed/racket/no-check))
(provide (all-from-out typed/scheme/base typed/racket/no-check))

View File

@ -0,0 +1,4 @@
#lang typed-racket/minimal
(require racket/require typed/racket/no-check (subtract-in typed/scheme typed/racket/no-check))
(provide (all-from-out typed/scheme typed/racket/no-check))

View File

@ -14,6 +14,7 @@
"at-exp-lib"
"scribble-lib"
"typed-racket-lib"
"typed-racket-compatibility"
"racket-doc"))
(define deps '("base"))

View File

@ -1,13 +1,13 @@
#lang scheme/base
#lang racket/base
(require
(except-in typed-racket/base-env/prims
require/typed require/opaque-type require-typed-struct)
typed-racket/base-env/base-types-extra
(for-syntax scheme/base syntax/parse syntax/struct))
(provide (all-from-out scheme/base)
(all-defined-out)
(all-from-out typed-racket/base-env/prims
(for-syntax racket/base syntax/parse syntax/struct))
(provide (all-from-out racket/base)
(all-defined-out)
(all-from-out typed-racket/base-env/prims
typed-racket/base-env/base-types-extra))
@ -17,8 +17,8 @@
(pattern nm:id
#:with spec #'nm)
(pattern (orig-nm:id internal-nm:id)
#:with spec #'(orig-nm internal-nm)
#:with nm #'internal-nm))
#:with spec #'(orig-nm internal-nm)
#:with nm #'internal-nm))
(define-syntax-class simple-clause
#:attributes (nm ty)
(pattern [nm:opt-rename ty]))
@ -39,9 +39,9 @@
(syntax-parse stx
[(_ lib (~or sc:simple-clause strc:struct-clause oc:opaque-clause) ...)
#'(begin
(require/opaque-type oc.ty oc.pred lib . oc.opt) ...
(require/typed sc.nm sc.ty lib) ...
(require-typed-struct strc.nm (strc.body ...) lib) ...)]
(require/opaque-type oc.ty oc.pred lib . oc.opt) ...
(require/typed sc.nm sc.ty lib) ...
(require-typed-struct strc.nm (strc.body ...) lib) ...)]
[(_ nm:opt-rename ty lib (~optional [~seq #:struct-maker parent]) ...)
#'(require (only-in lib nm.spec))]))

View File

@ -1,4 +1,4 @@
#lang typed-racket/minimal
(require racket/require typed-scheme/no-check (subtract-in typed/racket/base typed-scheme/no-check))
(provide (all-from-out typed/racket/base typed-scheme/no-check))
(require racket/require typed/racket/no-check (subtract-in typed/racket/base typed/racket/no-check))
(provide (all-from-out typed/racket/base typed/racket/no-check))

View File

@ -1,4 +1,5 @@
#lang typed-racket/minimal
(require racket/require typed-scheme/no-check (subtract-in typed/racket typed-scheme/no-check))
(provide (all-from-out typed/racket typed-scheme/no-check))
(require racket/require typed/private/no-check-helper
(subtract-in typed/racket typed/private/no-check-helper))
(provide (all-from-out typed/racket typed/private/no-check-helper))

View File

@ -10,6 +10,7 @@
"rackunit-lib"
"rackunit-gui"
"typed-racket-lib"
"typed-racket-compatibility"
"gui-lib"))
(define build-deps '("scribble-lib"))

View File

@ -1,7 +1,8 @@
#lang info
(define collection 'multi)
(define deps '("typed-racket" "typed-racket-more" "unstable"))
(define deps '("typed-racket" "typed-racket-more" "typed-racket-compatibility"
"unstable"))
(define build-deps '("scheme-lib"
"base"
"racket-benchmarks"