packages feed

xorshift-plus-0.1.0.0: xorshift-plus.cabal

cabal-version:       2.4
name:                xorshift-plus
version:             0.1.0.0

synopsis:            Simple implementation of xorshift+ PRNG
-- description:

homepage:            https://github.com/syocy/xorshift-plus
bug-reports:         https://github.com/syocy/xorshift-plus/issues

license:             BSD-3-Clause
license-file:        LICENSE

author:              OSANAI Kazuyoshi
maintainer:          osmium.k@gmail.com
-- copyright:

category:            Math

extra-source-files:  README.md
                   , CHANGELOG.md

source-repository head
  type:              git
  location:          https://github.com/syocy/xorshift-plus
              
library
  exposed-modules:     Random.XorshiftPlus
  -- other-extensions:
  build-depends:       base ^>=4.12.0.0
                     , ghc-prim
  hs-source-dirs:      src
  ghc-options:         -Wall -Wcompat -O2
  default-language:    Haskell2010

test-suite doctests
  type:                exitcode-stdio-1.0
  main-is:             Main.hs
  hs-source-dirs:      tests/doctest
  build-depends:       base
                     , doctest >= 0.8
  ghc-options:         -Wall -Wcompat
  default-language:    Haskell2010

test-suite specs
  type:                exitcode-stdio-1.0
  main-is:             Spec.hs
  hs-source-dirs:      tests/spec
  other-modules:       Random.XorshiftPlusSpec
  build-depends:       base
                     , xorshift-plus
                     , hspec >= 2
                     , QuickCheck
  build-tool-depends:  hspec-discover:hspec-discover >= 2
  ghc-options:         -Wall -Wcompat
  default-language:    Haskell2010

benchmark micro
  type:                exitcode-stdio-1.0
  main-is:             micro.hs
  hs-source-dirs:      benchmarks/micro
  build-depends:       base
                     , xorshift-plus
                     , gauge >= 0.2
                     , xorshift >= 2
                     , random >= 1.1
                     , Xorshift128Plus == 0.1.0.2
  ghc-options:         -Wall -Wcompat -O2
  default-language:    Haskell2010