cabal-version:       2.2

name:                fused-effects-random
version:             1.1.0.0
synopsis:            Random number generation for fused-effects.
description:         Random number generation as an effect using fused-effects.
homepage:            https://github.com/fused-effects/fused-effects-random
bug-reports:         https://github.com/fused-effects/fused-effects-random/issues
license:             BSD-3-Clause
license-file:        LICENSE
author:              Rob Rix
maintainer:          robrix@github.com
copyright:           2019-2020 Rob Rix
category:            Control
build-type:          Simple
extra-source-files:
  CHANGELOG.md
  README.md

common common
  default-language: Haskell2010
  ghc-options:
    -Weverything
    -Wno-all-missed-specialisations
    -Wno-implicit-prelude
    -Wno-missed-specialisations
    -Wno-missing-import-lists
    -Wno-missing-local-signatures
    -Wno-monomorphism-restriction
    -Wno-name-shadowing
    -Wno-safe
    -Wno-unsafe
  if (impl(ghc >= 8.8))
    ghc-options: -Wno-missing-deriving-strategies
  if (impl(ghc >= 8.10))
    ghc-options:
      -Wno-missing-safe-haskell-mode
      -Wno-prepositive-qualified-module

library
  import: common
  exposed-modules:
    Control.Carrier.Random.Gen
    Control.Effect.Random
  build-depends:
    , base >=4.10 && < 5
    , fused-effects ^>= 1.1
    , random >= 1.1 && < 1.3
    , transformers >= 0.4 && <0.6
  hs-source-dirs: src

source-repository head
  type:     git
  location: https://github.com/fused-effects/fused-effects-random