packages feed

aeson-schemas-1.4.3.0: aeson-schemas.cabal

cabal-version: >= 1.10

-- This file has been generated from package.yaml by hpack version 0.37.0.
--
-- see: https://github.com/sol/hpack

name:           aeson-schemas
version:        1.4.3.0
synopsis:       Easily consume JSON data on-demand with type-safety
description:    Parse JSON data easily and safely without defining new data types. Useful
                for deeply nested JSON data, which is difficult to parse using the default
                FromJSON instances.
category:       JSON
homepage:       https://github.com/brandonchinn178/aeson-schemas#readme
bug-reports:    https://github.com/brandonchinn178/aeson-schemas/issues
author:         Brandon Chinn <brandonchinn178@gmail.com>
maintainer:     Brandon Chinn <brandonchinn178@gmail.com>
license:        BSD3
license-file:   LICENSE.md
build-type:     Simple
extra-source-files:
    README.md
    CHANGELOG.md
    examples/input.json
    test/goldens/fromjson_error_messages_truncate.golden
    test/goldens/fromjson_list_inner_invalid.golden
    test/goldens/fromjson_list_invalid.golden
    test/goldens/fromjson_maybe_invalid.golden
    test/goldens/fromjson_nested_inner_invalid.golden
    test/goldens/fromjson_nested_invalid.golden
    test/goldens/fromjson_object_invalid.golden
    test/goldens/fromjson_object_later_keys_invalid.golden
    test/goldens/fromjson_phantom_inner_invalid.golden
    test/goldens/fromjson_phantom_inner_missing.golden
    test/goldens/fromjson_phantom_invalid.golden
    test/goldens/fromjson_scalar_invalid.golden
    test/goldens/fromjson_union_invalid.golden
    test/goldens/getqq_empty_expression.golden
    test/goldens/getqq_no_operators.golden
    test/goldens/getqq_ops_after_list.golden
    test/goldens/getqq_ops_after_tuple.golden
    test/goldens/ghc/9.10/getqq_missing_key.golden
    test/goldens/ghc/9.12/getqq_missing_key.golden
    test/goldens/ghc/9.8/getqq_missing_key.golden
    test/goldens/README_Quickstart.golden
    test/goldens/schemaqq_key_with_invalid_character.golden
    test/goldens/schemaqq_key_with_trailing_escape.golden
    test/goldens/sumtype_decode_invalid.golden
    test/goldens/unwrapqq_unwrap_past_list.golden
    test/goldens/unwrapqq_unwrap_past_tuple.golden
    test/wont-compile/GetMissingKey.hs

source-repository head
  type: git
  location: https://github.com/brandonchinn178/aeson-schemas

library
  exposed-modules:
      Data.Aeson.Schema
      Data.Aeson.Schema.Internal
      Data.Aeson.Schema.Key
      Data.Aeson.Schema.TH
      Data.Aeson.Schema.Type
      Data.Aeson.Schema.Utils.All
      Data.Aeson.Schema.Utils.Compat
      Data.Aeson.Schema.Utils.Invariant
      Data.Aeson.Schema.Utils.NameLike
      Data.Aeson.Schema.Utils.Sum
  other-modules:
      Data.Aeson.Schema.TH.Enum
      Data.Aeson.Schema.TH.Get
      Data.Aeson.Schema.TH.Getter
      Data.Aeson.Schema.TH.Parse
      Data.Aeson.Schema.TH.Schema
      Data.Aeson.Schema.TH.Unwrap
      Data.Aeson.Schema.TH.Utils
  hs-source-dirs:
      src
  ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wnoncanonical-monad-instances -Wunused-packages
  build-depends:
      aeson <3
    , base >=4.17 && <5
    , first-class-families <0.9
    , hashable <1.6
    , megaparsec <10
    , template-haskell <2.24
    , text <2.2
    , unordered-containers <0.3
  default-language: Haskell2010

test-suite aeson-schemas-test
  type: exitcode-stdio-1.0
  main-is: Main.hs
  other-modules:
      Tests.EnumTH
      Tests.GetQQ
      Tests.GetQQ.TH
      Tests.MkGetter
      Tests.Object
      Tests.Object.Eq
      Tests.Object.FromJSON
      Tests.Object.FromJSON.TH
      Tests.Object.Show
      Tests.Object.Show.TH
      Tests.Object.ToJSON
      Tests.Quickstart
      Tests.SchemaQQ
      Tests.SchemaQQ.TH
      Tests.SumType
      Tests.UnwrapQQ
      Tests.UnwrapQQ.TH
      TestUtils
      TestUtils.Arbitrary
      TestUtils.DeepSeq
      Paths_aeson_schemas
  hs-source-dirs:
      test
  ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wnoncanonical-monad-instances -Wunused-packages
  build-depends:
      QuickCheck
    , aeson
    , aeson-qq >=0.8.4
    , aeson-schemas
    , base
    , deepseq
    , filepath
    , interpolate
    , process
    , raw-strings-qq
    , tasty
    , tasty-golden
    , tasty-hunit
    , tasty-quickcheck >=0.8.1
    , template-haskell
    , temporary
    , text
    , th-orphans
    , th-test-utils
  default-language: Haskell2010

benchmark aeson-schemas-bench
  type: exitcode-stdio-1.0
  main-is: Main.hs
  other-modules:
      Benchmarks.Data.Objects
      Benchmarks.Data.Schemas
      Benchmarks.Data.Schemas.TH
      Benchmarks.FromJSON
      Benchmarks.SchemaQQ
      Benchmarks.Show
      Benchmarks.ToJSON
      Utils.DeepSeq
      Paths_aeson_schemas
  hs-source-dirs:
      bench
  ghc-options: -Wall -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wnoncanonical-monad-instances -Wunused-packages
  build-depends:
      aeson
    , aeson-schemas
    , base
    , criterion
    , deepseq
    , template-haskell
    , th-test-utils
  default-language: Haskell2010