packages feed

hw-aeson-0.1.3.0: hw-aeson.cabal

cabal-version: 2.2

name:                   hw-aeson
version:                0.1.3.0
synopsis:               Convenience functions for Aeson
description:            Convenience functions for Aeson.
category:               Data, JSON
homepage:               https://github.com/haskell-works/hw-aeson#readme
bug-reports:            https://github.com/haskell-works/hw-aeson/issues
author:                 John Ky
maintainer:             newhoggy@gmail.com
copyright:              2018-2022 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-aeson

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

common doctest                    { build-depends: doctest                    >= 0.16.2     && < 0.21   }
common doctest-discover           { build-depends: doctest-discover           >= 0.2        && < 0.3    }
common aeson                      { build-depends: aeson                      >= 1.4        && < 2.1    }
common hedgehog                   { build-depends: hedgehog                   >= 0.6        && < 1.3    }
common hspec                      { build-depends: hspec                      >= 2.4        && < 3      }
common text                       { build-depends: text                       >= 1.2        && < 1.3    }
common text-short                 { build-depends: text-short                 >= 0.1.5      && < 0.2    }
common unordered-containers       { build-depends: unordered-containers       >= 0.2        && < 0.3    }

common config

common hw-aeson
  build-depends:        hw-aeson

library
  import:               base, config
                      , aeson
                      , text
                      , text-short
                      , unordered-containers
  other-modules:        Paths_hw_aeson
  autogen-modules:      Paths_hw_aeson
  hs-source-dirs:       src
  default-language:     Haskell2010
  exposed-modules:      HaskellWorks.Data.Aeson
                        HaskellWorks.Data.Aeson.Compat
                        HaskellWorks.Data.Aeson.Compat.Map

test-suite hw-aeson-test
  import:               base, config
                      , aeson
                      , hedgehog
                      , hspec
                      , hw-aeson
  type:                 exitcode-stdio-1.0
  main-is:              Spec.hs
  ghc-options:          -threaded -rtsopts -with-rtsopts=-N
  hs-source-dirs:       test
  default-language:     Haskell2010
  autogen-modules:      Paths_hw_aeson
  build-tool-depends:   hspec-discover:hspec-discover
  other-modules:        HaskellWorks.Data.AesonSpec
                        Paths_hw_aeson

test-suite doctest
  import:               base, config
                      , doctest
                      , doctest-discover
                      , hw-aeson
  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