Skip to content

Commit

Permalink
Remove dependency on unstable-libs (#294)
Browse files Browse the repository at this point in the history
Remove dependency on `unstable-lib` and require Racket version 6.3 or higher.
  • Loading branch information
stchang authored and jackfirth committed Jan 25, 2017
1 parent 85b1470 commit 0d1d56e
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 26 deletions.
13 changes: 5 additions & 8 deletions .travis.yml
Expand Up @@ -3,21 +3,18 @@ sudo: false
env:
global:
- RACKET_DIR=~/racket
- VERSION_TO_COVER="6.5"
- VERSION_TO_COVER="6.8"
matrix:
- RACKET_VERSION="6.0.1" CATALOG_VERSION="6.0.1"
- RACKET_VERSION="6.1" CATALOG_VERSION="6.1"
- RACKET_VERSION="6.1.1" CATALOG_VERSION="6.1.1"
- RACKET_VERSION="6.2" CATALOG_VERSION="6.2"
- RACKET_VERSION="6.2.1" CATALOG_VERSION="6.2.1"
- RACKET_VERSION="6.3" CATALOG_VERSION="6.3"
- RACKET_VERSION="6.4" CATALOG_VERSION="6.4"
- RACKET_VERSION="6.5" CATALOG_VERSION="6.5"
- RACKET_VERSION="6.6" CATALOG_VERSION="6.6"
- RACKET_VERSION="HEAD" CATALOG_VERSION="6.6"
- RACKET_VERSION="6.7" CATALOG_VERSION="6.7"
- RACKET_VERSION="6.8" CATALOG_VERSION="6.8"
- RACKET_VERSION="HEAD" CATALOG_VERSION="6.8"
matrix:
allow_failures:
- env: RACKET_VERSION="HEAD" CATALOG_VERSION="6.6"
- env: RACKET_VERSION="HEAD" CATALOG_VERSION="6.8"

before_install:
- git clone https://github.com/greghendershott/travis-racket.git ../travis-racket
Expand Down
5 changes: 2 additions & 3 deletions lens-common/info.rkt
Expand Up @@ -3,12 +3,11 @@
(define collection 'multi)

(define deps
'("base"
'(("racket" #:version "6.3")
"base"
"fancy-app"
"rackunit-lib"
"reprovide-lang"
"unstable-contract-lib"
"unstable-lib"
))

(define build-deps
Expand Down
1 change: 0 additions & 1 deletion lens-common/lens/private/base/contract.rkt
Expand Up @@ -3,7 +3,6 @@
(provide lens/c)

(require racket/contract/base
unstable/contract
"gen-lens.rkt"
)
(module+ test
Expand Down
2 changes: 1 addition & 1 deletion lens-common/lens/private/base/transform.rkt
@@ -1,6 +1,6 @@
#lang racket/base

(require unstable/sequence
(require racket/sequence
racket/match
racket/contract/base
lens/private/base/base
Expand Down
2 changes: 1 addition & 1 deletion lens-common/lens/private/base/view-set.rkt
@@ -1,6 +1,6 @@
#lang racket/base

(require unstable/sequence
(require racket/sequence
racket/match
racket/contract/base
fancy-app
Expand Down
2 changes: 1 addition & 1 deletion lens-common/lens/private/compound/zoom.rkt
Expand Up @@ -11,7 +11,7 @@ require fancy-app
lens/private/compound/thrush
lens/private/util/list-pair-contract
racket/match
unstable/sequence
racket/sequence
lens/private/isomorphism/base
module+ test
require lens/private/list/main
Expand Down
6 changes: 2 additions & 4 deletions lens-data/info.rkt
Expand Up @@ -3,12 +3,10 @@
(define collection 'multi)

(define deps
'("base"
'(("racket" #:version "6.3")
"base"
"lens-common"
"rackunit-lib"
"unstable-lib"
"unstable-list-lib"
"unstable-contract-lib"
"fancy-app"
"syntax-classes-lib"
"struct-update-lib"
Expand Down
2 changes: 1 addition & 1 deletion lens-data/lens/private/hash/hash-filterer.rkt
Expand Up @@ -11,7 +11,7 @@ provide
require fancy-app
lens/private/base/main
lens/private/util/immutable
unstable/hash
racket/hash
module+ test
require lens/private/test-util/test-lens
rackunit
Expand Down
2 changes: 1 addition & 1 deletion lens-data/lens/private/hash/join-hash.rkt
Expand Up @@ -2,7 +2,7 @@

(require racket/contract
racket/match
unstable/sequence
racket/sequence
fancy-app
lens/private/base/main
lens/private/util/alternating-list
Expand Down
2 changes: 1 addition & 1 deletion lens-data/lens/private/list/join-assoc.rkt
Expand Up @@ -11,7 +11,7 @@ require lens/private/base/main
lens/private/util/alternating-list
lens/private/util/list-pair-contract
racket/match
unstable/sequence
racket/sequence
module+ test
require rackunit lens/private/list/list-ref-take-drop

Expand Down
4 changes: 2 additions & 2 deletions lens-data/lens/private/string/substring.rkt
@@ -1,6 +1,6 @@
#lang racket/base

(require racket/function racket/contract/base unstable/contract)
(require racket/function racket/contract/base racket/contract)

(provide
(contract-out
Expand Down Expand Up @@ -62,4 +62,4 @@
(thunk (lens-set (substring-lens 2 4) "kitten" "cat"))) ; Replacement string is too long
(check-not-exn
(thunk (lens-set (substring-lens 2 4) "kitten" "ca"))) ; Replacement string is just right!
)
)
5 changes: 3 additions & 2 deletions lens-data/lens/private/util/alternating-list.rkt
Expand Up @@ -9,7 +9,8 @@ provide alternating->assoc-list

require racket/list
racket/match
unstable/sequence
racket/sequence
racket/dict
module+ test
require rackunit

Expand All @@ -20,7 +21,7 @@ module+ test

(define (assoc->alternating-list alist)
(append*
(for/list ([(k v) (in-pairs alist)])
(for/list ([(k v) (in-dict alist)])
(list k v))))

(define (keys+values->assoc-list keys values)
Expand Down

0 comments on commit 0d1d56e

Please sign in to comment.