We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ce7fb14 + 69e0e3c commit 7c77e03Copy full SHA for 7c77e03
src/Halogen/VDom/Thunk.purs
@@ -3,6 +3,7 @@ module Halogen.VDom.Thunk
3
, buildThunk
4
, runThunk
5
, hoist
6
+ , mapThunk
7
, thunked
8
, thunk1
9
, thunk2
@@ -32,7 +33,10 @@ instance functorThunk ∷ Functor f ⇒ Functor (Thunk f) where
32
33
map f (Thunk a b c d) = Thunk a b (c >>> map f) d
34
35
hoist ∷ ∀ f g. (f ~> g) → Thunk f ~> Thunk g
-hoist k (Thunk a b c d) = Thunk a b (c >>> k) d
36
+hoist = mapThunk
37
+
38
+mapThunk ∷ ∀ f g i j. (f i -> g j) → Thunk f i -> Thunk g j
39
+mapThunk k (Thunk a b c d) = Thunk a b (c >>> k) d
40
41
thunk ∷ ∀ a f i. Fn.Fn4 ThunkId (Fn.Fn2 a a Boolean) (a → f i) a (Thunk f i)
42
thunk = Fn.mkFn4 \tid eqFn f a →
0 commit comments