@@ -173,12 +173,15 @@ module Reflex.Class
173 , slowHeadE
173 , slowHeadE
176−#if defined(MIN_VERSION_semialign)
176+#ifdef MIN_VERSION_semialign
177import Prelude hiding (zip, zipWith)
177import Prelude hiding (zip, zipWith)
179#if MIN_VERSION_these(0,8,0)
179#if MIN_VERSION_these(0,8,0)
180import Data.These.Combinators (justThese)
180import Data.These.Combinators (justThese)
182+#if MIN_VERSION_semialign(1,1,0)
183+import Data.Zip (Zip (..))
184import Control.Applicative
187import Control.Applicative
@@ -1077,7 +1080,10 @@ instance Reflex t => Semialign (Event t) where
1078 align = alignEventWithMaybe Just
1081 align = alignEventWithMaybe Just
1080−#if defined(MIN_VERSION_semialign)
1083+#ifdef MIN_VERSION_semialign
1084+#if MIN_VERSION_semialign(1,1,0)
1085+instance Reflex t => Zip (Event t) where
1081 zip x y = mapMaybe justThese $ align x y
1087 zip x y = mapMaybe justThese $ align x y