@@ -180,7 +180,7 @@ import Prelude hiding (zip, zipWith)
180import Data.These.Combinators (justThese)
180import Data.These.Combinators (justThese)
182#if MIN_VERSION_semialign(1,1,0)
182#if MIN_VERSION_semialign(1,1,0)
183−import Data.Zip (Zip (..))
183+import Data.Zip (Zip (..), Unzip (..))
@@ -1091,6 +1091,12 @@ instance Reflex t => Zip (Event t) where
1091 zip x y = mapMaybe justThese $ align x y
1091 zip x y = mapMaybe justThese $ align x y
1094+#ifdef MIN_VERSION_semialign
1095+#if MIN_VERSION_semialign(1,1,0)
1096+instance Reflex t => Unzip (Event t) where
1095-- | Create a new 'Event' that only occurs if the supplied 'Event' occurs and
1101-- | Create a new 'Event' that only occurs if the supplied 'Event' occurs and
1096-- the 'Behavior' is true at the time of occurrence.
1102-- the 'Behavior' is true at the time of occurrence.