Skip to content

Commit 196c5cc

Browse files
committed
change cljs.spec.gen nses to cljs.spec.impl.gen to avoid clash with cljs.spec/gen
1 parent e6ef088 commit 196c5cc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/cljs/cljs/spec/gen.clj renamed to src/main/cljs/cljs/spec/impl/gen.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
; the terms of this license.
77
; You must not remove this notice, or any other, from this software.
88

9-
(ns cljs.spec.gen
9+
(ns cljs.spec.impl.gen
1010
(:refer-clojure :exclude [delay])
1111
(:require [cljs.core :as c]))
1212

@@ -21,7 +21,7 @@
2121
generator that delegates to that, but delays
2222
creation until used."
2323
[& body]
24-
`(cljs.spec.gen/delay-impl (c/delay ~@body)))
24+
`(cljs.spec.impl.gen/delay-impl (c/delay ~@body)))
2525

2626
(defmacro ^:skip-wiki lazy-combinator
2727
"Implementation macro, do not call directly."

src/main/cljs/cljs/spec/gen.cljs renamed to src/main/cljs/cljs/spec/impl/gen.cljs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
; the terms of this license.
77
; You must not remove this notice, or any other, from this software.
88

9-
(ns cljs.spec.gen
9+
(ns cljs.spec.impl.gen
1010
(:refer-clojure :exclude [boolean cat hash-map list map not-empty set vector
1111
char double int keyword symbol string uuid delay])
1212
(:require-macros [cljs.core :as c]
13-
[cljs.spec.gen :as gen :refer [dynaload lazy-combinators lazy-prims]])
13+
[cljs.spec.impl.gen :as gen :refer [dynaload lazy-combinators lazy-prims]])
1414
(:require [cljs.core :as c]))
1515

1616
(def ^:private quick-check-ref
@@ -111,8 +111,8 @@ gen-builtins
111111
(comment
112112
(require 'clojure.test.check)
113113
(require 'clojure.test.check.properties)
114-
(require 'cljs.spec.gen)
115-
(in-ns 'cljs.spec.gen)
114+
(require 'cljs.spec.impl.gen)
115+
(in-ns 'cljs.spec.impl.gen)
116116

117117
;; combinators, see call to lazy-combinators above for complete list
118118
(generate (one-of [(gen-for-pred integer?) (gen-for-pred string?)]))

0 commit comments

Comments
 (0)