File pandoc-types.cabal of Package ghc-pandoc-types

cabal-version:       2.2
Name:                pandoc-types
version:             1.23.1
x-revision: 2
Synopsis:            Types for representing a structured document
Description:         @Text.Pandoc.Definition@ defines the 'Pandoc' data
                     structure, which is used by pandoc to represent
                     structured documents.  This module used to live
                     in the pandoc package, but starting with pandoc 1.7, it
                     has been split off, so that other packages can use it
                     without drawing in all of pandoc's dependencies, and
                     pandoc itself can depend on packages (like citeproc-hs)
                     that use them.
                     .
                     @Text.Pandoc.Builder@ provides functions for building
                     up @Pandoc@ structures programmatically.
                     .
                     @Text.Pandoc.Generic@ provides generic functions for
                     manipulating Pandoc documents.
                     .
                     @Text.Pandoc.Walk@ provides faster, nongeneric functions
                     for manipulating Pandoc documents.
                     .
                     @Text.Pandoc.JSON@ provides functions for serializing
                     and deserializing a @Pandoc@ structure to and from JSON.

Homepage:            https://pandoc.org/
License:             BSD-3-Clause
License-file:        LICENSE
Author:              John MacFarlane
Maintainer:          jgm@berkeley.edu
Bug-Reports:         https://github.com/jgm/pandoc-types/issues
Copyright:           (c) 2006-2023 John MacFarlane
Category:            Text
Build-type:          Simple
Extra-Source-Files:  changelog
Source-repository    head
  type:              git
  location:          git://github.com/jgm/pandoc-types.git

Library
  hs-source-dirs:    src
  Exposed-modules:   Text.Pandoc.Definition
                     Text.Pandoc.Generic
                     Text.Pandoc.Walk
                     Text.Pandoc.Builder
                     Text.Pandoc.JSON
                     Text.Pandoc.Arbitrary
  Other-modules:     Paths_pandoc_types
  Autogen-modules:   Paths_pandoc_types
  Build-depends:     base >= 4.5 && < 5,
                     containers >= 0.3,
                     text,
                     deepseq >= 1.4.1 && < 1.6,
                     syb >= 0.1 && < 0.8,
                     ghc-prim >= 0.2,
                     bytestring >= 0.9 && < 0.13,
                     aeson >= 0.6.2 && < 2.3,
                     transformers >= 0.2 && < 0.7,
                     QuickCheck >= 2.10 && < 2.16
  if !impl(ghc >= 8.0)
    Build-depends:   semigroups == 0.18.*
  ghc-options:       -Wall
  default-language:  Haskell2010

test-suite test-pandoc-types
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             test-pandoc-types.hs
  Other-modules:       Data.String.QQ
  build-depends:       base,
                       pandoc-types,
                       syb,
                       aeson >= 0.6.2 && < 2.3,
                       containers >= 0.3,
                       text,
                       bytestring >= 0.9 && < 0.13,
                       test-framework >= 0.3 && < 0.9,
                       test-framework-hunit >= 0.2 && < 0.4,
                       test-framework-quickcheck2 >= 0.2.9 && < 0.4,
                       QuickCheck >= 2.10 && < 2.16,
                       HUnit >= 1.2 && < 1.7,
                       template-haskell >= 2
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N -Wall -O2
  default-language:  Haskell2010

benchmark benchmark-pandoc-types
  type:            exitcode-stdio-1.0
  main-is:         bench.hs
  hs-source-dirs:  benchmark
  build-depends:   pandoc-types,
                   base >= 4.5 && < 5,
                   text,
                   criterion >= 1.0
  ghc-options:   -rtsopts -Wall -fno-warn-unused-do-bind -O2
  default-language:  Haskell2010
openSUSE Build Service is sponsored by