@@ -1020,8 +1020,12 @@ switchHoldPromptOnlyIncremental mergePatchIncremental coincidencePatch e0 e' = d
1021instance Reflex t => Align (Event t) where
1021instance Reflex t => Align (Event t) where
1022 nil = never
1022 nil = never
1023+#if MIN_VERSION_these(0, 8, 0)
1024+instance Reflex t => Semialign (Event t) where
1023 align = alignEventWithMaybe Just
1026 align = alignEventWithMaybe Just
1025-- | Create a new 'Event' that only occurs if the supplied 'Event' occurs and
1029-- | Create a new 'Event' that only occurs if the supplied 'Event' occurs and
1026-- the 'Behavior' is true at the time of occurrence.
1030-- the 'Behavior' is true at the time of occurrence.
1027gate :: Reflex t => Behavior t Bool -> Event t a -> Event t a
1031gate :: Reflex t => Behavior t Bool -> Event t a -> Event t a