Skip to content

Commit ecc8511

Browse files
committed
Fix semigroup imports
1 parent 3e78a72 commit ecc8511

File tree

8 files changed

+16
-7
lines changed

8 files changed

+16
-7
lines changed

src/Data/Patch.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import Data.Functor.Const (Const (..))
1818
import Data.Functor.Identity
1919
import Data.Map.Monoidal (MonoidalMap)
2020
import Data.Proxy
21-
#if !MIN_VERSION_base(4,10,0)
21+
#if !MIN_VERSION_base(4,11,0)
2222
import Data.Semigroup (Semigroup (..))
2323
#endif
2424
import GHC.Generics

src/Data/Patch/Class.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
{-# LANGUAGE CPP #-}
12
{-# LANGUAGE TypeFamilies #-}
23
-- | The interface for types which represent changes made to other types
34
module Data.Patch.Class where
45

56
import Data.Functor.Identity
67
import Data.Maybe
8+
#if !MIN_VERSION_base(4,11,0)
79
import Data.Semigroup (Semigroup(..))
10+
#endif
811
import Data.Proxy
912

1013
-- | A 'Patch' type represents a kind of change made to a datastructure.

src/Data/Patch/DMap.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE CPP #-}
12
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
23
{-# LANGUAGE LambdaCase #-}
34
{-# LANGUAGE PolyKinds #-}
@@ -20,7 +21,9 @@ import Data.Functor.Misc
2021
import qualified Data.IntMap as IntMap
2122
import qualified Data.Map as Map
2223
import Data.Monoid.DecidablyEmpty
24+
#if !MIN_VERSION_base(4,11,0)
2325
import Data.Semigroup (Semigroup (..))
26+
#endif
2427
import Data.Some (Some)
2528

2629
-- | A set of changes to a 'DMap'. Any element may be inserted/updated or deleted.

src/Data/Patch/DMapWithMove.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ import Data.GADT.Show (GShow, gshow)
3030
import qualified Data.Map as Map
3131
import Data.Maybe
3232
import Data.Monoid.DecidablyEmpty
33-
import Data.Semigroup (Semigroup (..), (<>))
33+
#if !MIN_VERSION_base(4,11,0)
34+
import Data.Semigroup (Semigroup (..))
35+
#endif
3436
import Data.Some (Some(Some))
3537
import Data.These
3638

src/Data/Patch/IntMap.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import Data.IntMap.Strict (IntMap)
1616
import qualified Data.IntMap.Strict as IntMap
1717
import Data.Maybe
1818
import Data.Monoid.DecidablyEmpty
19-
#if !MIN_VERSION_base(4,10,0)
19+
#if !MIN_VERSION_base(4,11,0)
2020
import Data.Semigroup (Semigroup (..))
2121
#endif
2222
import Data.Patch.Class

src/Data/Patch/Map.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE CPP #-}
12
{-# LANGUAGE DeriveTraversable #-}
23
{-# LANGUAGE FlexibleInstances #-}
34
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
@@ -18,7 +19,7 @@ import Data.Map (Map)
1819
import qualified Data.Map as Map
1920
import Data.Maybe
2021
import Data.Monoid.DecidablyEmpty
21-
import Data.Semigroup
22+
import Data.Semigroup (Semigroup (..), stimesIdempotentMonoid)
2223

2324
-- | A set of changes to a 'Map'. Any element may be inserted/updated or
2425
-- deleted. Insertions are represented as values wrapped in 'Just', while

src/Data/Patch/MapWithMove.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import Data.List
2525
import Data.Map (Map)
2626
import qualified Data.Map as Map
2727
import Data.Maybe
28-
#if !MIN_VERSION_base(4,10,0)
29-
import Data.Semigroup (Semigroup (..), (<>))
28+
#if !MIN_VERSION_base(4,11,0)
29+
import Data.Semigroup (Semigroup (..))
3030
#endif
3131
import qualified Data.Set as Set
3232
import Data.These (These(..))

src/Data/Patch/MapWithPatchingMove.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import Data.List
2626
import Data.Map (Map)
2727
import qualified Data.Map as Map
2828
import Data.Maybe
29-
#if !MIN_VERSION_base(4,10,0)
29+
#if !MIN_VERSION_base(4,11,0)
3030
import Data.Semigroup (Semigroup (..))
3131
#endif
3232
import Data.Monoid.DecidablyEmpty

0 commit comments

Comments
 (0)