build-type:          Simple
cabal-version:       2.0

name:                pandoc-utils
version:             0.5.1
synopsis:
  Utility functions to work with Pandoc in Haskell applications.
description:
  This package contains some useful functions for writing [Pandoc](https://pandoc.org/)
  filters and integrating Pandoc into Haskell applications such as [Hakyll](https://jaspervdj.be/hakyll/)
  and web servers.
  .
  It provides a composable wrapper for filters acting on nodes of the [Pandoc
  AST](https://hackage.haskell.org/package/pandoc-types/docs/Text-Pandoc-Definition.html)
  and a few functions to convert between filters. The package also provides an
  attributes builder to work with attributes and some string utility functions
  to handle the switch from 'String' to 'Text' in pandoc-types 1.20.
  .
  For more examples, please see the [README](https://github.com/Krasjet/pandoc-utils) on GitHub.
license:             MIT
license-file:        LICENSE
author:              Krasjet
maintainer:          Krasjet
copyright:           Copyright (c) 2020 Krasjet
homepage:            https://github.com/Krasjet/pandoc-utils
bug-reports:         https://github.com/Krasjet/pandoc-utils/issues
category:            Text
extra-source-files:
    CHANGELOG.md
    README.md

source-repository head
  type:     git
  location: git://github.com/Krasjet/pandoc-utils.git

library
  hs-source-dirs:      src
  default-language:    Haskell2010
  ghc-options:         -Wall
  exposed-modules:
      Text.Pandoc.Utils
      Text.Pandoc.Utils.String
      Text.Pandoc.Filter.Utils
      Text.Pandoc.Filter.Utils.AttrBuilder
  build-depends:
      base          >=4.10 && <4.15
    , pandoc-types ^>=1.17.2 || ^>=1.20
    , text         ^>=1.2

test-suite pandoc-utils-test
  hs-source-dirs:      test
  default-language:    Haskell2010
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N -Wall
  type:                exitcode-stdio-1.0
  main-is:             Spec.hs
  build-depends:
      base          >=4.10 && <4.15
    , pandoc-utils
    , containers   ^>=0.6
    , data-default ^>=0.7
    , pandoc       ^>=2.9
    , pandoc-types ^>=1.20
    , transformers ^>=0.5
    , tasty        ^>=1.2
    , tasty-hspec  ^>=1.1
    , text         ^>=1.2