We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71f4e42 commit d686624Copy full SHA for d686624
src/Halogen/Component.purs
@@ -19,7 +19,6 @@ module Halogen.Component
19
import Prelude
20
21
import Data.Bifunctor (lmap)
22
-import Data.Bifunctor.Wrap (Wrap(..))
23
import Data.Coyoneda (unCoyoneda)
24
import Data.Foldable (traverse_)
25
import Data.Maybe (Maybe(..), maybe)
@@ -210,7 +209,7 @@ data ComponentSlot slots m action
210
209
instance functorComponentSlot :: Functor (ComponentSlot slots m) where
211
map f = case _ of
212
ComponentSlot box -> ComponentSlot (map f box)
213
- ThunkSlot thunk -> ThunkSlot (Thunk.mapThunk (under Wrap (map f) <<< lmap (map f)) thunk)
+ ThunkSlot thunk -> ThunkSlot (Thunk.mapThunk (bimap (map f) f) thunk)
214
215
-- | Constructs a [`ComponentSlot`](#t:ComponentSlot).
216
-- |
0 commit comments