File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -201,11 +201,12 @@ instance Foldable.Foldable (HashMap k) where
201
201
{-# INLINE foldr #-}
202
202
foldl' = Data.HashMap.Base. foldl'
203
203
{-# INLINE foldl' #-}
204
+ #if MIN_VERSION_base(4,8,0)
204
205
null = Data.HashMap.Base. null
205
206
{-# INLINE null #-}
206
207
length = Data.HashMap.Base. size
207
208
{-# INLINE length #-}
208
-
209
+ #endif
209
210
210
211
#if __GLASGOW_HASKELL__ >= 711
211
212
instance (Eq k , Hashable k ) => Semigroup (HashMap k v ) where
Original file line number Diff line number Diff line change @@ -142,12 +142,14 @@ instance Foldable.Foldable HashSet where
142
142
{-# INLINE foldr #-}
143
143
foldl' = Data.HashSet.Base. foldl'
144
144
{-# INLINE foldl' #-}
145
+ #if MIN_VERSION_base(4,8,0)
145
146
toList = Data.HashSet.Base. toList
146
147
{-# INLINE toList #-}
147
148
null = Data.HashSet.Base. null
148
149
{-# INLINE null #-}
149
150
length = Data.HashSet.Base. size
150
151
{-# INLINE length #-}
152
+ #endif
151
153
152
154
#if __GLASGOW_HASKELL__ >= 711
153
155
instance (Hashable a , Eq a ) => Semigroup (HashSet a ) where
You can’t perform that action at this time.
0 commit comments