name:           pandoc-plot
version:        0.6.1.0
cabal-version:  >= 1.12
synopsis:       A Pandoc filter to include figures generated from code blocks using your plotting toolkit of choice.
description:    A Pandoc filter to include figures generated from code blocks. Keep the document and code in the same location. Output is captured and included as a figure.
category:       Text
copyright:      (c) 2019-2020 Laurent P. René de Cotret
homepage:       https://github.com/LaurentRDC/pandoc-plot#readme
bug-reports:    https://github.com/LaurentRDC/pandoc-plot/issues
author:         Laurent P. René de Cotret
maintainer:     Laurent P. René de Cotret
license:        GPL-2
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    CHANGELOG.md
    LICENSE
    README.md
    stack.yaml
    example-config.yml

source-repository head
    type: git
    location: https://github.com/LaurentRDC/pandoc-plot

library
    exposed-modules:
        Text.Pandoc.Filter.Plot
        Text.Pandoc.Filter.Plot.Internal
    other-modules:
        Paths_pandoc_plot
        Text.Pandoc.Filter.Plot.Clean
        Text.Pandoc.Filter.Plot.Configuration
        Text.Pandoc.Filter.Plot.Types
        Text.Pandoc.Filter.Plot.Parse
        Text.Pandoc.Filter.Plot.Scripting
        Text.Pandoc.Filter.Plot.Renderers
        Text.Pandoc.Filter.Plot.Renderers.Prelude
        Text.Pandoc.Filter.Plot.Renderers.Matplotlib
        Text.Pandoc.Filter.Plot.Renderers.PlotlyPython
        Text.Pandoc.Filter.Plot.Renderers.PlotlyR
        Text.Pandoc.Filter.Plot.Renderers.Matlab
        Text.Pandoc.Filter.Plot.Renderers.Mathematica
        Text.Pandoc.Filter.Plot.Renderers.Octave
        Text.Pandoc.Filter.Plot.Renderers.GGPlot2
        Text.Pandoc.Filter.Plot.Renderers.GNUPlot
        Text.Pandoc.Filter.Plot.Renderers.Graphviz
    hs-source-dirs:
        src
    ghc-options: 
        -Wall 
        -Wcompat
    build-depends:
          base               >= 4.11  && <5
        , bytestring
        , containers
        , directory
        , data-default-class >= 0.1.2 && < 0.2
        , filepath           >= 1.4   && < 2
        , hashable           >= 1     && < 2
        , pandoc             >= 2.8   && < 3
        , pandoc-types       >= 1.20  && < 2
        , async              >= 2     && < 3
        , shakespeare        >= 2.0   && < 3
        , temporary
        , text               >= 1     && < 2
        , turtle             >= 1.5   && < 2
        , typed-process      >= 0.2.1 && < 1
        , yaml               >= 0.8   && < 1
        , mtl                >= 2.2   && < 2.3
    default-language: Haskell2010

executable pandoc-plot
    main-is: Main.hs
    other-modules:
        ManPage
        ExampleConfig
        Paths_pandoc_plot
    hs-source-dirs:
        executable
    ghc-options: -Wall -Wcompat -rtsopts -O2 -threaded -with-rtsopts=-N
    build-depends:
          base                  >= 4.11 && <5
        , directory
        , deepseq
        , filepath
        , githash               >= 0.1.3.0 && < 1
        , open-browser          >= 0.2.1.0
        , optparse-applicative  >= 0.14 && < 1
        , pandoc
        , pandoc-plot
        , pandoc-types          > 1.12 && <2
        , template-haskell      > 2.7 && < 3
        , temporary
        , text
    default-language: Haskell2010

test-suite tests
    type: exitcode-stdio-1.0
    hs-source-dirs:  tests
    main-is:         Main.hs
    other-modules:
        Common
    build-depends:   base                 >= 4.11 && < 5
                   , containers
                   , directory
                   , data-default-class   >= 0.1.2
                   , filepath
                   , hspec
                   , hspec-expectations
                   , pandoc-types         >= 1.20 && <= 2
                   , pandoc-plot
                   , tasty
                   , tasty-hunit
                   , tasty-hspec
                   , temporary
                   , text
                   , mtl                >= 2.2   && < 2.3
    default-language: Haskell2010
  
benchmark benchmark-pandoc-plot
    type: exitcode-stdio-1.0
    main-is: bench.hs
    other-modules:
        MatplotlibGallery
    hs-source-dirs: benchmark
    build-depends:   base
                   , pandoc-plot
                   , pandoc-types
                   , criterion          >= 1.0 && < 1.6
                   , template-haskell   > 2.7 && < 3
                   , text
    ghc-options:   -Wall -Wcompat -rtsopts -O2 -threaded -with-rtsopts=-N
    default-language: Haskell2010