Skip to content

Commit

Permalink
[wip]
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenet committed May 30, 2024
1 parent 6e5c360 commit e3be3ef
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/exoscale/lingo.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
[exoscale.lingo.impl :as impl]
[exoscale.lingo.utils :as u]))

(create-ns 'exoscale.lingo.pred)

(def registry-ref
(atom (merge #:exoscale.lingo.registry.spec{:message {}}
#:exoscale.lingo.registry.pred{:conformers #{}
Expand Down Expand Up @@ -75,7 +73,7 @@
pred-data (if (and (= reason "no method")
(not (= :exoscale.lingo.pred/symbol
(:exoscale.lingo.explain.pred/val pred-data))))
(conformer conformers `(exoscale.lingo.pred/no-method ~pred))
(conformer conformers `(exoscale.lingo/pred-no-method ~pred))
pred-data)]
(cond-> pb
pred-data (into pred-data)))))))
Expand Down Expand Up @@ -431,7 +429,7 @@
(impl/format "should be an Integer between %d and %d" min max)))

(set-pred-error! (s/def :exoscale.lingo.pred/no-method
(s/cat :_ #{'exoscale.lingo.pred/no-method}
(s/cat :_ #{'exoscale.lingo/pred-no-method}
:method ident?))
(fn [{:keys [method]} _opts]
(impl/format "should allow dispatch on %s" method)))
Expand Down

0 comments on commit e3be3ef

Please sign in to comment.