packages feed

hq-json-0.1.1: hq-json.cabal

cabal-version: 1.18

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

name:           hq-json
version:        0.1.1
synopsis:       A streaming JSON processor inspired by jq, with a lens-based query language.
description:    hq is a JSON processor inspired by jq. It queries JSON with optics
                and rewrites values with transformations, streaming input so large
                documents never load fully into memory.
category:       json,
                cli,
                optics,
                streaming,
                data-processing,
                tools
stability:      experimental
homepage:       https://github.com/damianfral/hq#readme
bug-reports:    https://github.com/damianfral/hq/issues
author:         damianfral <huevofritopamojarpan@gmail.com>
maintainer:     damianfral <huevofritopamojarpan@gmail.com>
copyright:      Damian Franco Alvarez, 2026
license:        MIT
license-file:   LICENSE
build-type:     Simple
tested-with:
    GHC == 9.10.3
extra-source-files:
    docs/LANG.md
extra-doc-files:
    README.md
    docs/LANG.md

source-repository head
  type: git
  location: https://github.com/damianfral/hq

flag dev
  description: Treat warnings as errors during development
  manual: True
  default: False

library
  exposed-modules:
      HQ.CLI
      HQ.Early
      HQ.Error
      HQ.JSON.Decoder
      HQ.JSON.Decoder.Core
      HQ.JSON.Decoder.Error
      HQ.JSON.Decoder.Keyword
      HQ.JSON.Decoder.Number
      HQ.JSON.Decoder.Skip
      HQ.JSON.Decoder.String
      HQ.JSON.Encoder
      HQ.JSON.Event
      HQ.JSON.Parser
      HQ.Optic
      HQ.Optic.AST
      HQ.Optic.OpticType
      HQ.Optic.Parser
      HQ.Parser
      HQ.Query
      HQ.Query.Parser
      HQ.Runner
      HQ.Runner.Cursor
      HQ.Runner.Error
      HQ.Runner.Fold
      HQ.Runner.Rewrite
      HQ.Runner.Rewrite.Emit
      HQ.Runner.Take
      HQ.Transformation
      HQ.Transformation.AST
      HQ.Transformation.Error
      HQ.Transformation.Parser
      HQ.Transformation.TransformationType
  other-modules:
      Paths_hq_json
  hs-source-dirs:
      ./src/
  ghc-options: -O2 -fshow-warning-groups -Weverything -Wno-all-missed-specialisations -Wno-missed-specialisations -Wno-missing-deriving-strategies -Wno-missing-export-lists -Wno-missing-import-lists -Wno-missing-kind-signatures -Wno-missing-local-signatures -Wno-missing-role-annotations -Wno-missing-safe-haskell-mode -Wno-monomorphism-restriction -Wno-safe -Wno-unsafe -fwrite-ide-info -funbox-strict-fields -flate-dmd-anal -fno-omit-interface-pragmas -fregs-graph -fspec-constr-recursive=32 -fmax-worker-args=32 -fexpose-all-unfoldings -fspecialise-aggressively -fdo-clever-arg-eta-expansion -Wno-unused-packages
  build-depends:
      aeson >=2.2.4 && <2.3
    , base >=4.20.2 && <4.21
    , bytestring >=0.12.2 && <0.13
    , file-embed >=0.0.16 && <0.1
    , megaparsec ==9.7.*
    , optparse-applicative >=0.18.1 && <0.19
    , parser-combinators >=1.3.1 && <1.4
    , relude >=1.2.2 && <1.3
    , scientific >=0.3.8 && <0.4
    , streaming >=0.2.4 && <0.3
    , text >=2.1.3 && <2.2
    , vector >=0.13.2 && <0.14
  default-language: Haskell2010
  if flag(dev)
    ghc-options: -Werror

executable hq
  main-is: Main.hs
  other-modules:
      Paths_hq_json
  hs-source-dirs:
      ./app/
  ghc-options: -O2 -fshow-warning-groups -Weverything -Wno-all-missed-specialisations -Wno-missed-specialisations -Wno-missing-deriving-strategies -Wno-missing-export-lists -Wno-missing-import-lists -Wno-missing-kind-signatures -Wno-missing-local-signatures -Wno-missing-role-annotations -Wno-missing-safe-haskell-mode -Wno-monomorphism-restriction -Wno-safe -Wno-unsafe -fwrite-ide-info -funbox-strict-fields -flate-dmd-anal -fno-omit-interface-pragmas -fregs-graph -fspec-constr-recursive=32 -fmax-worker-args=32 -fexpose-all-unfoldings -fspecialise-aggressively -fdo-clever-arg-eta-expansion -Wno-unused-packages -rtsopts -threaded -with-rtsopts=-qg
  build-depends:
      base >=4.20.2 && <4.21
    , hq-json
    , relude >=1.2.2 && <1.3
  default-language: Haskell2010
  if flag(dev)
    ghc-options: -Werror

test-suite hq-test
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  other-modules:
      HQ.CLISpec
      HQ.JSON.DecoderSpec
      HQ.JSON.EncoderSpec
      HQ.JSON.ParserSpec
      HQ.OpticSpec
      HQ.Query.ParserSpec
      HQ.QuerySpec
      HQ.Runner.FoldSpec
      HQ.Runner.RewriteSpec
      HQ.Transformation.ASTSpec
      HQ.Transformation.ParserSpec
      Test.HQ
      Paths_hq_json
  hs-source-dirs:
      test
  ghc-options: -O2 -fshow-warning-groups -Weverything -Wno-all-missed-specialisations -Wno-missed-specialisations -Wno-missing-deriving-strategies -Wno-missing-export-lists -Wno-missing-import-lists -Wno-missing-kind-signatures -Wno-missing-local-signatures -Wno-missing-role-annotations -Wno-missing-safe-haskell-mode -Wno-monomorphism-restriction -Wno-safe -Wno-unsafe -fwrite-ide-info -funbox-strict-fields -flate-dmd-anal -fno-omit-interface-pragmas -fregs-graph -fspec-constr-recursive=32 -fmax-worker-args=32 -fexpose-all-unfoldings -fspecialise-aggressively -fdo-clever-arg-eta-expansion -Wno-unused-packages -rtsopts -threaded -with-rtsopts=-N
  build-depends:
      aeson >=2.2.4 && <2.3
    , base >=4.20.2 && <4.21
    , hq-json
    , optparse-applicative >=0.18.1 && <0.19
    , relude >=1.2.2 && <1.3
    , scientific >=0.3.8 && <0.4
    , streaming >=0.2.4 && <0.3
    , sydtest ==0.20.*
    , sydtest-discover >=0.0.0.4 && <0.1
  default-language: Haskell2010
  if flag(dev)
    ghc-options: -Werror