cabal-version: 3.0

name:
  htoml-parse
version:
  0.1
synopsis:
  Parse TOML values produced by htoml-megaparsec package.

description:
  Package definecs set of parser combinators that allows analyzing arbitrary TOML structures.
  Includes formatted errors that keep track of where in the original TOML file a value
  came from.

category: Data, TOML

license:
  Apache-2.0
license-file:
  LICENSE

author:
  Sergey Vinokurov
maintainer:
  Sergey Vinokurov <serg.foo@gmail.com>

build-type:
  Simple

homepage: https://github.com/sergv/htoml-parse
source-repository head
    type: git
    location: https://github.com/sergv/htoml-parse.git

common ghc-options
  default-language:
    Haskell2010

  ghc-options:
    -Weverything
    -Wno-type-defaults
    -Wno-implicit-prelude
    -Wno-missing-local-signatures
    -Wno-missing-import-lists
    -Wno-missed-specialisations
    -Wno-all-missed-specialisations
    -Wno-safe
    -Wno-missing-safe-haskell-mode
    -Wno-unsafe

  if impl(ghc >= 8.8)
    ghc-options:
      -Wno-missing-deriving-strategies

  if impl(ghc >= 9.2)
    ghc-options:
      -Wno-missing-kind-signatures

library
  import: ghc-options
  exposed-modules:
    Data.Toml.Parse
  hs-source-dirs:
    src
  build-depends:
    base >= 4.9 && < 5,
    comonad,
    containers,
    dlist,
    htoml-megaparsec >= 2.1,
    mtl,
    prettyprinter >= 1.7,
    prettyprinter-combinators,
    text,
    time,
    unordered-containers,
    vector