Skip to content

Commit d686624

Browse files
authored
fix; Module Data.Bifunctor.Wrap was not found
purescript/purescript-profunctor#23 (comment)
1 parent 71f4e42 commit d686624

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Halogen/Component.purs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ module Halogen.Component
1919
import Prelude
2020

2121
import Data.Bifunctor (lmap)
22-
import Data.Bifunctor.Wrap (Wrap(..))
2322
import Data.Coyoneda (unCoyoneda)
2423
import Data.Foldable (traverse_)
2524
import Data.Maybe (Maybe(..), maybe)
@@ -210,7 +209,7 @@ data ComponentSlot slots m action
210209
instance functorComponentSlot :: Functor (ComponentSlot slots m) where
211210
map f = case _ of
212211
ComponentSlot box -> ComponentSlot (map f box)
213-
ThunkSlot thunk -> ThunkSlot (Thunk.mapThunk (under Wrap (map f) <<< lmap (map f)) thunk)
212+
ThunkSlot thunk -> ThunkSlot (Thunk.mapThunk (bimap (map f) f) thunk)
214213

215214
-- | Constructs a [`ComponentSlot`](#t:ComponentSlot).
216215
-- |

0 commit comments

Comments
 (0)