Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Switch from importing GHC.Prim to GHC.Exts #535

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion basement/Basement/Alg/Mutable.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Basement.Alg.Mutable
) where

import GHC.Types
import GHC.Prim
import GHC.Exts
import Basement.Compat.Base
import Basement.Numerical.Additive
import Basement.Numerical.Multiplicative
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/Alg/PrimArray.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module Basement.Alg.PrimArray
) where

import GHC.Types
import GHC.Prim
import GHC.Exts
import Basement.Alg.Class
import Basement.Compat.Base
import Basement.Numerical.Additive
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/Alg/String.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module Basement.Alg.String
, revFindIndexPredicate
) where

import GHC.Prim
import GHC.Exts
import GHC.ST
import Basement.Alg.Class
import Basement.Alg.UTF8
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/Alg/UTF8.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module Basement.Alg.UTF8

import GHC.Types
import GHC.Word
import GHC.Prim
import GHC.Exts hiding (toList)
import Data.Bits
import Data.Proxy
import Basement.Alg.Class
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/Base16.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module Basement.Base16
, Base16Escape(..)
) where

import GHC.Prim
import GHC.Exts
import GHC.Types
import GHC.Word
import Basement.Types.Char7
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/Bindings/Memory.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Basement.Bindings.Memory
where

import GHC.IO
import GHC.Prim
import GHC.Exts
import GHC.Word
import Basement.Compat.C.Types
import Foreign.Ptr
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/Bits.hs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import qualified Data.Bits as OldBits
import Data.Maybe (fromMaybe)
import Data.Proxy
import GHC.Base hiding ((.))
import GHC.Prim
import GHC.Exts
import GHC.Types
import GHC.Word
import GHC.Int
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/Block.hs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ module Basement.Block
, withPtr
) where

import GHC.Prim
import GHC.Exts
import GHC.Types
import GHC.ST
import qualified Data.List
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/Block/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module Basement.Block.Base
, unsafeRecast
) where

import GHC.Prim
import GHC.Exts
import GHC.Types
import GHC.ST
import GHC.IO
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/Block/Mutable.hs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ module Basement.Block.Mutable
, copyToPtr
) where

import GHC.Prim
import GHC.Exts
import GHC.Types
import Basement.Compat.Base
import Data.Proxy
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/BoxedArray.hs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ module Basement.BoxedArray
, builderBuild_
) where

import GHC.Prim
import GHC.Exts
import GHC.Types
import GHC.ST
import Data.Proxy
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/Cast.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import Basement.PrimType
import Data.Proxy (Proxy(..))

import GHC.Int
import GHC.Prim
import GHC.Exts
import GHC.Types
import GHC.ST
import GHC.Word
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/Compat/PrimTypes.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module Basement.Compat.PrimTypes
, Pinned#
) where

import GHC.Prim
import GHC.Exts

-- | File size in bytes
type FileSize# = Word64#
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/Compat/Primitive.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module Basement.Compat.Primitive

import qualified Prelude
import GHC.Exts
import GHC.Prim
import GHC.Exts
import GHC.Word
import GHC.IO

Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/Error.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module Basement.Error
( error
) where

import GHC.Prim
import GHC.Exts
import Basement.UTF8.Base
import Basement.Compat.CallStack

Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/Floating.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module Basement.Floating
) where

import GHC.Types
import GHC.Prim
import GHC.Exts
import GHC.Float
import GHC.Word
import GHC.ST
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/From.hs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import Basement.Compat.Base

-- basic instances
import GHC.Types
import GHC.Prim
import GHC.Exts
import GHC.Int
import GHC.Word
import Basement.Numerical.Number
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/IntegralConv.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module Basement.IntegralConv
) where

import GHC.Types
import GHC.Prim
import GHC.Exts
import GHC.Int
import GHC.Word
import Prelude (Integer, fromIntegral)
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/Monad.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import GHC.ST
import GHC.STRef
import GHC.IORef
import GHC.IO
import GHC.Prim
import GHC.Exts
import Basement.Compat.Base (Exception, (.), ($), Applicative, Monad)

-- | Primitive monad that can handle mutation.
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/Numerical/Additive.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Basement.Compat.Natural
import Basement.Numerical.Number
import qualified Prelude
import GHC.Types
import GHC.Prim
import GHC.Exts
import GHC.Int
import GHC.Word
import Basement.Bounded
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/Numerical/Conversion.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module Basement.Numerical.Conversion
#include "MachDeps.h"

import GHC.Types
import GHC.Prim
import GHC.Exts
import GHC.Int
import GHC.Word

Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/PrimType.hs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module Basement.PrimType

#include "MachDeps.h"

import GHC.Prim
import GHC.Exts
import GHC.Int
import GHC.Types
import GHC.Word
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/String.hs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ import qualified Basement.Alg.UTF8 as UTF8
import qualified Basement.Alg.String as Alg
import Basement.Types.Char7 (Char7(..), c7Upper, c7Lower)
import qualified Basement.Types.Char7 as Char7
import GHC.Prim
import GHC.Exts
import GHC.ST
import GHC.Types
import GHC.Word
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/String/Encoding/ASCII7.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import Basement.Types.OffsetSize
import Basement.Numerical.Additive
import Basement.Monad

import GHC.Prim
import GHC.Exts
import GHC.Word
import GHC.Types
import Basement.UArray
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/String/Encoding/ISO_8859_1.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import Basement.Types.OffsetSize
import Basement.Numerical.Additive
import Basement.Monad

import GHC.Prim
import GHC.Exts
import GHC.Word
import GHC.Types
import Basement.UArray
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/String/Encoding/UTF16.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module Basement.String.Encoding.UTF16
, UTF16_Invalid(..)
) where

import GHC.Prim
import GHC.Exts
import GHC.Word
import GHC.Types
import Data.Bits
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/String/Encoding/UTF32.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module Basement.String.Encoding.UTF32
, UTF32_Invalid
) where

import GHC.Prim
import GHC.Exts
import GHC.Word
import GHC.Types
import Basement.Compat.Base
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/Types/Char7.hs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module Basement.Types.Char7
, c7Lower
) where

import GHC.Prim
import GHC.Exts
import GHC.Word
import GHC.Types
import Data.Bits
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/Types/OffsetSize.hs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module Basement.Types.OffsetSize
import GHC.Types
import GHC.Word
import GHC.Int
import GHC.Prim
import GHC.Exts
import System.Posix.Types (CSsize (..))
import Data.Bits
import Basement.Compat.Base
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/Types/Ptr.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Basement.Compat.Base
import Basement.Compat.C.Types
import Basement.Types.OffsetSize
import GHC.Ptr
import GHC.Prim
import GHC.Exts
import GHC.Types

data Addr = Addr Addr#
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/Types/Word128.hs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module Basement.Types.Word128
, fromNatural
) where

import GHC.Prim
import GHC.Exts
import GHC.Word
import GHC.Types
import qualified Prelude (fromInteger, show, Num(..), quot, rem, mod)
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/Types/Word256.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module Basement.Types.Word256
, fromNatural
) where

import GHC.Prim
import GHC.Exts
import GHC.Word
import GHC.Types
import qualified Prelude (fromInteger, show, Num(..), quot, rem, mod)
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/UArray.hs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ module Basement.UArray
, toBase64Internal
) where

import GHC.Prim
import GHC.Exts
import GHC.Types
import GHC.Word
import GHC.ST
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/UArray/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module Basement.UArray.Base
, pureST
) where

import GHC.Prim
import GHC.Exts
import GHC.Types
import GHC.Ptr
import GHC.ST
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/UArray/Mutable.hs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module Basement.UArray.Mutable
, withMutablePtrHint
) where

import GHC.Prim
import GHC.Exts
import GHC.Types
import GHC.Ptr
import Basement.Compat.Base
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/UTF8/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module Basement.UTF8.Base
import GHC.ST (ST, runST)
import GHC.Types
import GHC.Word
import GHC.Prim
import GHC.Exts
import GHC.Exts (build)
import Basement.Compat.Base
import Basement.Numerical.Additive
Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/UTF8/Helper.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import Basement.Compat.Base
import Basement.Compat.Primitive
import Basement.Types.OffsetSize
import Basement.UTF8.Types
import GHC.Prim
import GHC.Exts
import GHC.Types
import GHC.Word

Expand Down
2 changes: 1 addition & 1 deletion basement/Basement/UTF8/Table.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module Basement.UTF8.Table
, getNbBytes#
) where

import GHC.Prim
import GHC.Exts
import GHC.Types
import GHC.Word
import Basement.Compat.Base
Expand Down
2 changes: 1 addition & 1 deletion foundation/Foundation/Random/XorShift.hs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import Basement.Compat.Bifunctor
import Basement.Compat.ExtList (reverse)
import qualified Basement.UArray as A
import qualified Prelude
import GHC.Prim
import GHC.Exts
import GHC.Float


Expand Down