packages feed

redis-glob-0.1.0.7: redis-glob.cabal

cabal-version:      3.0
name:               redis-glob
version:            0.1.0.7
license:            BSD-3-Clause
license-file:       LICENSE
maintainer:         adetokunbo@emio.la
author:             Tim Emiola
tested-with:        GHC ==8.10.7 || ==9.0.2 || ==9.2.4 || ==9.4.1
homepage:           https://github.com/adetokunbo/redis-glob#readme
bug-reports:        https://github.com/adetokunbo/redis-glob/issues
synopsis:           Specify valid redis globs
description:
  Supplies functions that parse and use redis __glob__ patterns.
  As in redis commands like [KEYS](https://redis.io/commands/keys), that filter using globs.

category:           Web, Redis
build-type:         Simple
extra-source-files:
  ChangeLog.md
  README.md

source-repository head
  type:     git
  location: https://github.com/adetokunbo/redis-glob.git

flag use-doc-tests
  description: Run the doctests
  default:     False

library
  exposed-modules:
    Redis.Glob
    Redis.Glob.Internal

  hs-source-dirs:   src
  default-language: Haskell2010
  ghc-options:      -Wall -Wincomplete-uni-patterns -fwarn-tabs
  build-depends:
    , ascii-char      >=1.0.1    && <1.1
    , base            >=4.11     && <5.0
    , bytestring      >=0.10.8.2 && <0.11 || >=0.11.3.1 && <0.12.1
    , megaparsec      >=9.2.1    && <9.7

  if impl(ghc >=8.4)
    ghc-options: -Wpartial-fields

test-suite test
  type:             exitcode-stdio-1.0
  main-is:          Spec.hs
  hs-source-dirs:   test
  other-modules:    Redis.GlobSpec
  default-language: Haskell2010
  ghc-options:      -threaded -rtsopts -with-rtsopts=-N -Wall -fwarn-tabs
  build-depends:
    , ascii-char
    , ascii-superset
    , base
    , bytestring
    , hspec           >=2.1
    , QuickCheck
    , redis-glob

test-suite doctests
  type:             exitcode-stdio-1.0
  main-is:          Main.hs
  hs-source-dirs:   doctest
  default-language: Haskell2010
  ghc-options:      -threaded -rtsopts -with-rtsopts=-N -Wall -fwarn-tabs
  build-depends:
    , base
    , doctest     >=0.8
    , redis-glob

  if flag(use-doc-tests)

  else
    buildable: False