Skip to content

Commit 5da68c0

Browse files
authored
Merge pull request #859 from alexfmpe/ghc8.0-leftovers
Remove CPP redundant since bump to ghc 8.0
2 parents 9530cf8 + d464ef5 commit 5da68c0

File tree

3 files changed

+2
-19
lines changed

3 files changed

+2
-19
lines changed

containers/src/Data/Map.hs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
#endif
55

66
#ifdef __GLASGOW_HASKELL__
7-
{-# LANGUAGE DataKinds, FlexibleContexts #-}
8-
#endif
9-
#if __GLASGOW_HASKELL__ >= 800
10-
{-# LANGUAGE MonoLocalBinds #-}
7+
{-# LANGUAGE DataKinds, FlexibleContexts, MonoLocalBinds #-}
118
#endif
129

1310
#include "containers.h"

containers/src/Data/Map/Internal/DeprecatedShowTree.hs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
1-
{-# LANGUAGE CPP, FlexibleContexts, DataKinds #-}
2-
#if __GLASGOW_HASKELL__ >= 800
3-
{-# LANGUAGE MonoLocalBinds #-}
4-
#endif
5-
#if __GLASGOW_HASKELL__ < 710
6-
-- Why do we need this? Guess it doesn't matter; this is all
7-
-- going away soon.
8-
{-# LANGUAGE Trustworthy #-}
9-
#endif
1+
{-# LANGUAGE CPP, FlexibleContexts, DataKinds, MonoLocalBinds #-}
102

113
#include "containers.h"
124

containers/src/Data/Set/Internal.hs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,10 @@ module Data.Set.Internal (
155155
, unions
156156
, difference
157157
, intersection
158-
#if (MIN_VERSION_base(4,9,0))
159158
, intersections
160-
#endif
161159
, cartesianProduct
162160
, disjointUnion
163-
#if (MIN_VERSION_base(4,9,0))
164161
, Intersection(..)
165-
#endif
166162

167163

168164
-- * Filter
@@ -883,7 +879,6 @@ intersection t1@(Bin _ x l1 r1) t2
883879
{-# INLINABLE intersection #-}
884880
#endif
885881

886-
#if (MIN_VERSION_base(4,9,0))
887882
-- | The intersection of a series of sets. Intersections are performed left-to-right.
888883
intersections :: Ord a => NonEmpty (Set a) -> Set a
889884
intersections (s0 :| ss) = List.foldr go id ss s0
@@ -899,7 +894,6 @@ newtype Intersection a = Intersection { getIntersection :: Set a }
899894
instance (Ord a) => Semigroup (Intersection a) where
900895
(Intersection a) <> (Intersection b) = Intersection $ intersection a b
901896
stimes = stimesIdempotent
902-
#endif
903897

904898
{--------------------------------------------------------------------
905899
Filter and partition

0 commit comments

Comments
 (0)