packages feed

crypto-rng-0.3.0.2: crypto-rng.cabal

cabal-version:       3.0
name:                crypto-rng
version:             0.3.0.2
synopsis:            Cryptographically secure random number generator.

description:         Convenient wrapper for the source of random bytes
                     provided by the @entropy@ package.

homepage:            https://github.com/scrive/crypto-rng
license:             BSD-3-Clause
license-file:        LICENSE
author:              Scrive AB
maintainer:          Andrzej Rybczak <andrzej.rybczak@scrive.com>
copyright:           Scrive AB
category:            Crypto
build-type:          Simple
tested-with:         GHC == { 8.10.7, 9.0.2, 9.2.8, 9.4.8, 9.6.7, 9.8.4, 9.10.3, 9.12.4, 9.14.1 }
extra-doc-files:     CHANGELOG.md
                   , README.md

source-repository head
  type:     git
  location: https://github.com/scrive/crypto-rng.git

common language
  ghc-options:         -Wall -Wcompat -Wredundant-constraints
                       -Werror=prepositive-qualified-module

  default-language:    Haskell2010

  default-extensions:  FlexibleInstances
                       GeneralizedNewtypeDeriving
                       ImportQualifiedPost
                       MultiParamTypeClasses
                       TypeApplications
                       UndecidableInstances

library
  import:              language

  exposed-modules:     Crypto.RNG
                       Crypto.RNG.Class
                       Crypto.RNG.Utils
                       Crypto.RNG.Unsafe

  build-depends:       base              >= 4.14    && <5
                     , bytestring        >= 0.10.8
                     , entropy           >= 0.4
                     , exceptions        >= 0.8.3
                     , monad-control     >= 1.0.1
                     , mtl               >= 2.2
                     , primitive         >= 0.7.1
                     , random            >= 1.2     && <1.4
                     , transformers-base >= 0.4.4

  hs-source-dirs:      src

test-suite test
  import:              language

  type:                exitcode-stdio-1.0
  main-is:             Main.hs

  ghc-options:         -threaded -rtsopts

  build-depends:       base
                     , bytestring
                     , containers  >= 0.6
                     , crypto-rng
                     , primitive   >= 0.7.1
                     , random      >= 1.2
                     , tasty       >= 1.4
                     , tasty-hunit >= 0.10

  hs-source-dirs:      test