packages feed

hw-mquery-0.2.1.2: hw-mquery.cabal

cabal-version:  2.2

name:                   hw-mquery
version:                0.2.1.2
synopsis:               Monadic query DSL
description:            Please see README.md
category:               Data
homepage:               http://github.com/haskell-works/hw-mquery#readme
bug-reports:            https://github.com/haskell-works/hw-mquery/issues
author:                 John Ky
maintainer:             newhoggy@gmail.com
copyright:              2018-2021 John Ky
license:                BSD-3-Clause
license-file:           LICENSE
tested-with:            GHC == 9.2.2, GHC == 9.0.2, GHC == 8.10.7, GHC == 8.8.4, GHC == 8.6.5
build-type:             Simple
extra-source-files:     README.md

source-repository head
  type: git
  location: https://github.com/haskell-works/hw-mquery

common base                       { build-depends: base                       >= 4.11       && < 5      }

common prettyprinter              { build-depends: prettyprinter              >= 1          && < 2      }
common dlist                      { build-depends: dlist                      >= 0.8.0      && < 1.1    }
common doctest                    { build-depends: doctest                    >= 0.16.2     && < 1      }
common doctest-discover           { build-depends: doctest-discover           >= 0.2        && < 0.3    }
common hedgehog                   { build-depends: hedgehog                   >= 0.6.1      && < 2      }
common hspec                      { build-depends: hspec                      >= 2.6.0      && < 3      }
common hw-hspec-hedgehog          { build-depends: hw-hspec-hedgehog          >= 0.1.0.5    && < 0.2    }
common lens                       { build-depends: lens                       >= 4.17       && < 6      }

common config
  ghc-options:          -Wall
  default-language:     Haskell2010

common hw-mquery
  build-depends:        hw-mquery

library
  import:               base, config
                      , prettyprinter
                      , dlist
                      , lens
  hs-source-dirs:       src
  exposed-modules:      HaskellWorks.Data.MQuery
                        HaskellWorks.Data.MQuery.AtLeastSize
                        HaskellWorks.Data.MQuery.Entry
                        HaskellWorks.Data.MQuery.Micro
                        HaskellWorks.Data.MQuery.Mini
                        HaskellWorks.Data.MQuery.Row
                        HaskellWorks.Data.MQuery.Shows
                        HaskellWorks.Data.MQuery.ToBool
  other-modules:        Paths_hw_mquery
  autogen-modules:      Paths_hw_mquery

executable hw-mquery-example
  import:               base, config
  main-is:              Main.hs
  hs-source-dirs:       app
  ghc-options:          -threaded -rtsopts -with-rtsopts=-N
  build-depends:        hw-mquery

test-suite hw-mquery-test
  import:               base, config
                      , dlist
                      , hedgehog
                      , hspec
                      , hw-hspec-hedgehog
                      , lens
  type:                 exitcode-stdio-1.0
  main-is:              Spec.hs
  hs-source-dirs:       test
  ghc-options:          -threaded -rtsopts -with-rtsopts=-N
  build-depends:        hw-mquery
  build-tool-depends:   hspec-discover:hspec-discover
  other-modules:        HaskellWorks.Data.Model.Example
                        HaskellWorks.Data.Model.Lens
                        HaskellWorks.Data.Model.Type
                        HaskellWorks.Data.MQuerySpec

test-suite doctest
  import:               base, config
                      , doctest
                      , doctest-discover
                      , hw-mquery
  default-language:     Haskell2010
  type:                 exitcode-stdio-1.0
  ghc-options:          -threaded -rtsopts -with-rtsopts=-N
  main-is:              DoctestDriver.hs
  HS-Source-Dirs:       doctest
  build-tool-depends:   doctest-discover:doctest-discover