Skip to content

Commit

Permalink
Clean up import warnings for GHC 9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewthad committed Feb 20, 2023
1 parent 056bf4b commit 518fe62
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
4 changes: 3 additions & 1 deletion Data/Primitive/PrimArray.hs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ import Data.Primitive.ByteArray (ByteArray(..))
#if !MIN_VERSION_base(4,11,0)
import Data.Monoid ((<>))
#endif
import Control.Applicative
#if !MIN_VERSION_base(4,18,0)
import Control.Applicative (liftA2)
#endif
import Control.DeepSeq
import Control.Monad.Primitive
import Control.Monad.ST
Expand Down
20 changes: 16 additions & 4 deletions Data/Primitive/Types.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
{-# LANGUAGE CPP, UnboxedTuples, MagicHash, DeriveDataTypeable #-}
{-# LANGUAGE GeneralizedNewtypeDeriving, StandaloneDeriving #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE UnboxedTuples #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeInType #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE PolyKinds #-}

#if __GLASGOW_HASKELL__ < 906
{-# LANGUAGE TypeInType #-}
#endif

#include "HsBaseConfig.h"

Expand Down Expand Up @@ -49,9 +58,12 @@ import qualified GHC.Exts
import Control.Applicative (Const(..))
import Data.Functor.Identity (Identity(..))
import qualified Data.Monoid as Monoid
import Data.Ord (Down(..))
import qualified Data.Semigroup as Semigroup

#if !MIN_VERSION_base(4,13,0)
import Data.Ord (Down(..))
#endif

-- | Class of types supporting primitive array operations. This includes
-- interfacing with GC-managed memory (functions suffixed with @ByteArray#@)
-- and interfacing with unmanaged memory (functions suffixed with @Addr#@).
Expand Down

0 comments on commit 518fe62

Please sign in to comment.