File tree Expand file tree Collapse file tree 4 files changed +21
-6
lines changed Expand file tree Collapse file tree 4 files changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ library
78
78
79
79
if flag(split-these)
80
80
build-depends : these >= 1 && < 1.1 ,
81
- semialign >= 1 && < 1.1 ,
81
+ semialign >= 1 && < 1.2 ,
82
82
monoidal-containers >= 0.6 && < 0.7
83
83
else
84
84
build-depends : these >= 0.4 && < 0.9 ,
Original file line number Diff line number Diff line change @@ -173,12 +173,15 @@ module Reflex.Class
173
173
, slowHeadE
174
174
) where
175
175
176
- #if defined( MIN_VERSION_semialign)
176
+ #ifdef MIN_VERSION_semialign
177
177
import Prelude hiding (zip , zipWith )
178
178
179
179
#if MIN_VERSION_these(0,8,0)
180
180
import Data.These.Combinators (justThese )
181
181
#endif
182
+ #if MIN_VERSION_semialign(1,1,0)
183
+ import Data.Zip (Zip (.. ))
184
+ #endif
182
185
#endif
183
186
184
187
import Control.Applicative
@@ -1077,7 +1080,10 @@ instance Reflex t => Semialign (Event t) where
1077
1080
#endif
1078
1081
align = alignEventWithMaybe Just
1079
1082
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
1086
+ #endif
1081
1087
zip x y = mapMaybe justThese $ align x y
1082
1088
#endif
1083
1089
Original file line number Diff line number Diff line change @@ -27,8 +27,11 @@ module Reflex.Collection
27
27
, simpleList
28
28
) where
29
29
30
- #if defined( MIN_VERSION_semialign)
30
+ #ifdef MIN_VERSION_semialign
31
31
import Prelude hiding (zip , zipWith )
32
+ #if MIN_VERSION_semialign(1,1,0)
33
+ import Data.Zip (Zip (.. ))
34
+ #endif
32
35
#endif
33
36
34
37
import Control.Monad.Identity
Original file line number Diff line number Diff line change @@ -72,10 +72,13 @@ import System.IO.Unsafe
72
72
import System.Mem.Weak
73
73
import Unsafe.Coerce
74
74
75
- #if defined( MIN_VERSION_semialign)
75
+ #ifdef MIN_VERSION_semialign
76
76
#if MIN_VERSION_these(0,8,0)
77
77
import Data.These.Combinators (justThese )
78
78
#endif
79
+ #if MIN_VERSION_semialign(1,1,0)
80
+ import Data.Zip (Zip (.. ))
81
+ #endif
79
82
#endif
80
83
81
84
#ifdef DEBUG_CYCLES
@@ -1163,7 +1166,10 @@ instance HasSpiderTimeline x => Semialign (Event x) where
1163
1166
align ea eb = mapMaybe dmapToThese $ mergeG coerce $ dynamicConst $
1164
1167
DMap. fromDistinctAscList [LeftTag :=> ea, RightTag :=> eb]
1165
1168
1166
- #if defined(MIN_VERSION_semialign)
1169
+ #ifdef MIN_VERSION_semialign
1170
+ #if MIN_VERSION_semialign(1,1,0)
1171
+ instance HasSpiderTimeline x => Zip (Event x ) where
1172
+ #endif
1167
1173
zip x y = mapMaybe justThese $ align x y
1168
1174
#endif
1169
1175
You can’t perform that action at this time.
0 commit comments