Skip to content

Commit cb79f1d

Browse files
committed
GHC-8.8.1 is pickier about unneeded imports
1 parent 0dec809 commit cb79f1d

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

generics-sop/src/Generics/SOP/Type/Metadata.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ module Generics.SOP.Type.Metadata
3333
, Associativity(..)
3434
) where
3535

36+
#if __GLASGOW_HASKELL__ <802
3637
import Data.Kind (Type)
38+
#endif
3739
import Data.Proxy (Proxy (..))
3840
import GHC.Generics
3941
( Associativity(..)

sop-core/src/Data/SOP/BasicFunctors.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ module Data.SOP.BasicFunctors
4343
, mapKKK
4444
) where
4545

46+
#if !MIN_VERSION_base(4,11,0)
4647
import Data.Semigroup (Semigroup (..))
48+
#endif
4749
import Data.Kind (Type)
4850
import qualified GHC.Generics as GHC
4951

sop-core/src/Data/SOP/NP.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ import Data.Coerce
9191
import Data.Kind (Type)
9292
import Data.Proxy (Proxy(..))
9393
import Unsafe.Coerce
94+
#if !MIN_VERSION_base(4,11,0)
9495
import Data.Semigroup (Semigroup (..))
96+
#endif
9597

9698
import Control.DeepSeq (NFData(..))
9799

0 commit comments

Comments
 (0)