@@ -677,11 +677,7 @@ instance (Num a, Reflex t) => Num (Dynamic t a) where
677instance (Reflex t, Semigroup a) => Semigroup (Behavior t a) where
677instance (Reflex t, Semigroup a) => Semigroup (Behavior t a) where
678 a <> b = pull $ liftM2 (<>) (sample a) (sample b)
678 a <> b = pull $ liftM2 (<>) (sample a) (sample b)
679 sconcat = pull . fmap sconcat . mapM sample
679 sconcat = pull . fmap sconcat . mapM sample
680−#if MIN_VERSION_semigroups(0,17,0)
681 stimes n = fmap $ stimes n
680 stimes n = fmap $ stimes n
683− times1p n = fmap $ times1p n
686-- | Alias for 'mapMaybe'
682-- | Alias for 'mapMaybe'
687fmapMaybe :: Filterable f => (a -> Maybe b) -> f a -> f b
683fmapMaybe :: Filterable f => (a -> Maybe b) -> f a -> f b
@@ -879,11 +875,7 @@ traceEventWith f = push $ \x -> trace (f x) $ return $ Just x
879instance (Semigroup a, Reflex t) => Semigroup (Event t a) where
875instance (Semigroup a, Reflex t) => Semigroup (Event t a) where
880 (<>) = alignWith (mergeThese (<>))
876 (<>) = alignWith (mergeThese (<>))
881 sconcat = fmap sconcat . mergeList . toList
877 sconcat = fmap sconcat . mergeList . toList
882−#if MIN_VERSION_semigroups(0,17,0)
883 stimes n = fmap $ stimes n
878 stimes n = fmap $ stimes n
885− times1p n = fmap $ times1p n
888instance (Semigroup a, Reflex t) => Monoid (Event t a) where
880instance (Semigroup a, Reflex t) => Monoid (Event t a) where
889 mempty = never
881 mempty = never
@@ -1116,11 +1108,7 @@ zipDynWith f da db =
1117instance (Reflex t, Semigroup a) => Semigroup (Dynamic t a) where
1109instance (Reflex t, Semigroup a) => Semigroup (Dynamic t a) where
1118 (<>) = zipDynWith (<>)
1110 (<>) = zipDynWith (<>)
1119−#if MIN_VERSION_semigroups(0,17,0)
1120 stimes n = fmap $ stimes n
1111 stimes n = fmap $ stimes n
1122− times1p n = fmap $ times1p n
1125instance (Reflex t, Monoid a) => Monoid (Dynamic t a) where
1113instance (Reflex t, Monoid a) => Monoid (Dynamic t a) where
1126 mconcat = distributeListOverDynWith mconcat
1114 mconcat = distributeListOverDynWith mconcat