on develop help sign in
Fix instance Applicative Dynamic: (<*)/(*>)
5d9ce23Lennart Spitzner
src/Reflex/Spider/Internal.hs+3−3
@@ -840,10 +840,10 @@ instance Functor (Dynamic Identity) where
840 fmap = newMapDyn
840 fmap = newMapDyn
841
841
842instance Applicative (Dynamic Identity) where
842instance Applicative (Dynamic Identity) where
843− pure = DynamicConst
843+ pure = DynamicConst
844 (<*>) = zipDynWith ($)
844 (<*>) = zipDynWith ($)
845− _ *> b = b
845+ (*>) = zipDynWith (flip const)
846− a <* _ = a
846+ (<*) = zipDynWith const
847
847
848instance R.FunctorMaybe Event where
848instance R.FunctorMaybe Event where
849 fmapMaybe f = push $ return . f
849 fmapMaybe f = push $ return . f