Skip to content
Merged
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
6 changes: 1 addition & 5 deletions bits-extra.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ common base { build-depends: base >=
common criterion { build-depends: criterion >= 1.3 && < 1.7 }
common doctest { build-depends: doctest >= 0.16.2 && < 0.25 }
common doctest-discover { build-depends: doctest-discover >= 0.2 && < 0.3 }
common ghc-prim { build-depends: ghc-prim >= 0.5 && < 0.14 }
common hedgehog { build-depends: hedgehog >= 0.5.3 && < 1.6 }
common hspec { build-depends: hspec >= 2.4 && < 3 }
common hw-hedgehog { build-depends: hw-hedgehog >= 0.1 && < 0.2 }
Expand All @@ -41,7 +40,7 @@ common vector { build-depends: vector >=
common config
default-language: Haskell2010
ghc-options: -Wall
if (flag(bmi2)) && (impl(ghc >= 8.4.1))
if flag(bmi2)
ghc-options: -mbmi2 -msse4.2
cpp-options: -DBMI2_ENABLED

Expand All @@ -50,7 +49,6 @@ common bits-extra

library
import: base, config
, ghc-prim
, vector
hs-source-dirs: src
ghc-options: -O2
Expand All @@ -66,7 +64,6 @@ library

test-suite bits-extra-test
import: base, config
, ghc-prim
, hedgehog
, hspec
, hw-hedgehog
Expand All @@ -85,7 +82,6 @@ test-suite bits-extra-test
benchmark bench
import: base, config
, criterion
, ghc-prim
, vector
type: exitcode-stdio-1.0
main-is: Main.hs
Expand Down
4 changes: 2 additions & 2 deletions src/Data/Bits/Pdep/Prim.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ module Data.Bits.Pdep.Prim
, fastPdepEnabled
) where

import GHC.Prim
import GHC.Word
import Data.Word

#if MIN_VERSION_base(4,11,0) && defined(BMI2_ENABLED)
import GHC.Exts
#else
import Data.Bits.Pdep.Slow
#endif
Expand Down
4 changes: 2 additions & 2 deletions src/Data/Bits/Pext/Prim.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ module Data.Bits.Pext.Prim
, fastPextEnabled
) where

import GHC.Word
import Data.Word

#if MIN_VERSION_base(4,11,0) && defined(BMI2_ENABLED)
import GHC.Prim
import GHC.Exts
#else
import Data.Bits.Pext.Slow
#endif
Expand Down