packages feed

hw-json-lens-0.2.1.0: hw-json-lens.cabal

cabal-version: 2.2

name:                   hw-json-lens
version:                0.2.1.0
synopsis:               Lens for hw-json
description:            Lens for hw-json. Please see README.md
category:               Data, Succinct Data Structures, Data Structures, JSON
homepage:               http://github.com/haskell-works/hw-json-lens#readme
bug-reports:            https://github.com/haskell-works/hw-json-lens/issues
author:                 Alexey Raga, John Ky
maintainer:             alexey.raga@gmail.com, newhoggy@gmail.com
copyright:              2018-2019 John Ky
                      , 2016 Alexey Raga
                      , 2013-2014 Edward Kmett,
                      , 2012 Paul Wilson
license:                BSD-3-Clause
license-file:           LICENSE
tested-with:            GHC == 8.10.1, GHC == 8.8.3, GHC == 8.6.5, GHC == 8.4.4
build-type:             Simple
extra-source-files:     README.md

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

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

common aeson                    { build-depends: aeson                                              }
common bytestring               { build-depends: bytestring               >= 0.10       && < 0.11   }
common containers               { build-depends: containers               >= 0.5        && < 0.7    }
common criterion                { build-depends: criterion                >= 1.4        && < 1.6    }
common doctest                  { build-depends: doctest                  >= 0.16.2     && < 0.17   }
common doctest-discover         { build-depends: doctest-discover         >= 0.2        && < 0.3    }
common hedgehog                 { build-depends: hedgehog                 >= 0.5        && < 1.1    }
common hspec                    { build-depends: hspec                    >= 2.4        && < 3      }
common hw-balancedparens        { build-depends: hw-balancedparens        >= 0.2.0.1    && < 0.4    }
common hw-bits                  { build-depends: hw-bits                  >= 0.7        && < 0.8    }
common hw-hspec-hedgehog        { build-depends: hw-hspec-hedgehog        >= 0.1.0.4    && < 0.2    }
common hw-json                  { build-depends: hw-json                  >= 1.3        && < 1.4    }
common hw-json-standard-cursor  { build-depends: hw-json-standard-cursor  >= 0.2        && < 0.3    }
common hw-prim                  { build-depends: hw-prim                  >= 0.6.2      && < 0.6.3  }
common lens                     { build-depends: lens                     >= 4          && < 5      }
common scientific               { build-depends: scientific               >= 0.3        && < 0.4    }
common text                     { build-depends: text                     >= 1.2        && < 1.3    }
common vector                   { build-depends: vector                   >= 0.12       && < 0.13   }
common word8                    { build-depends: word8                    >= 0.1        && < 0.2    }

common hw-json-lens
  build-depends:        hw-json-lens

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

library
  import:               base, config
                      , aeson
                      , bytestring
                      , containers
                      , hw-json
                      , lens
                      , scientific
                      , text
                      , word8
  exposed-modules:      HaskellWorks.Data.Json.Lens
                        HaskellWorks.Data.ListMap
  other-modules:        Paths_hw_json_lens
  autogen-modules:      Paths_hw_json_lens
  hs-source-dirs:       src
  ghc-options:          -O2 -msse4.2

benchmark bench
  import:               base, config
                      , bytestring
                      , criterion
                      , hw-json
                      , hw-json-lens
                      , lens
  type:                 exitcode-stdio-1.0
  main-is:              Main.hs
  hs-source-dirs:       bench
  ghc-options:          -O2 -msse4.2

test-suite hw-json-lens-test
  import:               base, config
                      , bytestring
                      , hedgehog
                      , hspec
                      , hw-balancedparens
                      , hw-bits
                      , hw-hspec-hedgehog
                      , hw-json
                      , hw-json-lens
                      , hw-json-standard-cursor
                      , hw-prim
                      , lens
                      , vector
  type:                 exitcode-stdio-1.0
  main-is:              Spec.hs
  other-modules:        HaskellWorks.Data.Json.LensSpec
                        HaskellWorks.Data.Json.NthSpec
  hs-source-dirs:       test
  ghc-options:          -threaded -rtsopts -with-rtsopts=-N
  build-tool-depends:   hspec-discover:hspec-discover

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