packages feed

bits-extra-0.0.1.3: bits-extra.cabal

-- This file has been generated from package.yaml by hpack version 0.27.0.
--
-- see: https://github.com/sol/hpack
--
-- hash: 2b570cc02c2669976f9b6116039e2b03b4942f905bf19228b08ea28cae3edcca

name:           bits-extra
version:        0.0.1.3
synopsis:       Useful bitwise operations
description:    Please see the README on Github at <https://github.com/haskell-works/bits-extra#readme>
category:       Data, Serialization
homepage:       https://github.com/haskell-works/bits-extra#readme
bug-reports:    https://github.com/haskell-works/bits-extra/issues
author:         John Ky
maintainer:     newhoggy@gmail.com
copyright:      2018 John Ky
license:        BSD3
license-file:   LICENSE
build-type:     Simple
cabal-version:  >= 1.10
tested-with:    GHC == 8.4.2, GHC == 8.2.2, GHC == 8.0.2, GHC == 7.10.3

extra-source-files:
    ChangeLog.md
    README.md

source-repository head
  type: git
  location: https://github.com/haskell-works/bits-extra

flag bmi2
  description: Enable bmi2 instruction set
  manual: False
  default: False

library
  exposed-modules:
      Data.Bits.BitSize
      Data.Bits.Pdep
      Data.Bits.Pdep.Slow
      Data.Bits.Pext
      Data.Bits.Pext.Slow
  other-modules:
      Data.Bits.Pdep.Prim
      Data.Bits.Pext.Prim
      Paths_bits_extra
  hs-source-dirs:
      src
  ghc-options: -Wall -O2
  build-depends:
      base >=4.8 && <5
    , ghc-prim
    , vector
  if (flag(bmi2)) && (impl(ghc >=8.4.1))
    ghc-options: -mbmi2 -msse4.2
    cpp-options: -DBMI2_ENABLED
  default-language: Haskell2010

test-suite bits-extra-test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      Data.Bits.PdepSpec
      Data.Bits.PextSpec
      Paths_bits_extra
  hs-source-dirs:
      test
  ghc-options: -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      base >=4.8 && <5
    , bits-extra
    , ghc-prim
    , hedgehog
    , hspec
    , hw-hedgehog
    , hw-hspec-hedgehog
  if (flag(bmi2)) && (impl(ghc >=8.4.1))
    ghc-options: -mbmi2 -msse4.2
  default-language: Haskell2010
  build-tool-depends: hspec-discover:hspec-discover

benchmark bench
  type: exitcode-stdio-1.0
  main-is: Main.hs
  other-modules:
      Paths_bits_extra
  hs-source-dirs:
      bench
  ghc-options: -Wall -O2
  build-depends:
      base >=4.8 && <5
    , bits-extra
    , criterion
    , ghc-prim
    , vector
  if (flag(bmi2)) && (impl(ghc >=8.4.1))
    ghc-options: -mbmi2 -msse4.2
  default-language: Haskell2010