cabal-version: 1.12
name:          string-random
version:       0.1.4.1
synopsis:
  A library for generating random string from a regular experession

description:
  With this package you can generate random strings from
  regular expressions. If you are using QuickCheck, you can
  also check the quickcheck-string-random package.

category:      Text
homepage:      https://github.com/hiratara/hs-string-random#readme
bug-reports:   https://github.com/hiratara/hs-string-random/issues
author:        Masahiro Honma
maintainer:    hiratara@cpan.org
copyright:     Copyright (C) 2016- hiratara
license:       BSD3
license-file:  LICENSE
tested-with:   GHC ==8.10.3
build-type:    Simple

source-repository head
  type:     git
  location: https://github.com/hiratara/hs-string-random

library
  -- cabal-fmt: expand src
  exposed-modules:
    Text.StringRandom
    Text.StringRandom.Parser

  hs-source-dirs:   src
  build-depends:
      attoparsec    >=0.13.1  && <0.15
    , base          >=4.9     && <5
    , containers    >=0.5.7.1 && <0.7
    , random        >=1.1     && <1.3
    , text          >=1.2.2.1 && <1.3
    , transformers  >=0.5.2.0 && <0.6

  default-language: Haskell2010

executable hstrrand
  main-is:          hstrrand.hs
  hs-source-dirs:   app
  ghc-options:      -O2 -threaded -Wall
  build-depends:
      base                  >=4.9 && <5
    , optparse-applicative
    , string-random
    , text

  default-language: Haskell2010

test-suite string-random-quickcheck
  type:             exitcode-stdio-1.0
  main-is:          string-random-quickcheck.hs
  hs-source-dirs:   test
  ghc-options:      -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      base
    , pcre-heavy
    , QuickCheck
    , string-random
    , tasty
    , tasty-quickcheck
    , text

  default-language: Haskell2010

test-suite string-random-test
  type:             exitcode-stdio-1.0
  main-is:          string-random-test.hs
  hs-source-dirs:   test
  ghc-options:      -threaded -rtsopts -with-rtsopts=-N
  build-depends:
      base
    , bytestring
    , pcre-heavy
    , string-random
    , tasty
    , tasty-hunit
    , text

  default-language: Haskell2010