Pedro Viegas
2014-09-22 20:26:34 UTC
Hi! I am trying to annotate a protocol in clojurescript, but I am not being
able to.
I am really lost.
(ns myproject.protocols
(:refer-clojure :exclude [defprotocol])
(:require [cljs.core.typed :as t :include-macros true]))
(t/defprotocol A
(fmap [fv g :- (t/All [x y] (t/Fn [x -> y]))]
[fv g :- (t/All [x y] (t/Fn [x -> y])) fvs :- (t/NonEmptyColl A)]))
Can anyone help me?
Thx
able to.
I am really lost.
(ns myproject.protocols
(:refer-clojure :exclude [defprotocol])
(:require [cljs.core.typed :as t :include-macros true]))
(t/defprotocol A
(fmap [fv g :- (t/All [x y] (t/Fn [x -> y]))]
[fv g :- (t/All [x y] (t/Fn [x -> y])) fvs :- (t/NonEmptyColl A)]))
Can anyone help me?
Thx