summaryrefslogtreecommitdiffstats
path: root/pandoc-plot.cabal
blob: a9ce00540a4fe5d8197112defc98d6e5749050c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
cabal-version:  2.2
name:           pandoc-plot
version:        1.5.2
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-present 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.0-or-later
license-file:   LICENSE
build-type:     Simple
tested-with:    GHC == 8.10.4, 
                GHC == 9.0.1, 
                GHC == 9.0.1, 
                GHC == 9.2.1, 
                GHC == 9.2.2
extra-source-files:
    CHANGELOG.md
    LICENSE
    README.md
    MANUAL.md
    docs/MANUAL.html
    example-config.yml

    data/srctemplate.html

    tests/fixtures/.config-meta.yml
    tests/fixtures/.empty-config.yml
    tests/fixtures/.verbose-config.yml
    tests/fixtures/plotfile.py
    tests/fixtures/data.csv
    
    tests/includes/bokeh.py
    tests/includes/ggplot2.r
    tests/includes/gnuplot.gp
    tests/includes/graphviz.dot
    tests/includes/mathplot.m
    tests/includes/matlabplot.m
    tests/includes/matplotlib.py
    tests/includes/octave.m
    tests/includes/plotly-python.py
    tests/includes/plotly-r.r
    tests/includes/plotsjl.jl
    tests/includes/plantuml.txt

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.Parse
        Text.Pandoc.Filter.Plot.Scripting
        Text.Pandoc.Filter.Plot.Scripting.Template
        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
        Text.Pandoc.Filter.Plot.Renderers.Bokeh
        Text.Pandoc.Filter.Plot.Renderers.Plotsjl
        Text.Pandoc.Filter.Plot.Renderers.PlantUML
        Text.Pandoc.Filter.Plot.Renderers.SageMath
        Text.Pandoc.Filter.Plot.Monad
        Text.Pandoc.Filter.Plot.Monad.Logging
        Text.Pandoc.Filter.Plot.Monad.Types
        Text.Pandoc.Filter.Plot.Embed
    autogen-modules:
        Paths_pandoc_plot
    hs-source-dirs:
        src
    ghc-options: 
        -Wall 
        -Wcompat
    build-depends:
          aeson              >= 2     && <3
        , base               >= 4.11  && <5
        , bytestring
        , containers
        , data-default  
        , directory          >= 1.2.7 && < 2
        , filepath           >= 1.4   && < 2
        , hashable           >= 1     && < 2
        , pandoc             >= 2.11  && < 3
        , pandoc-types       >= 1.22  && < 1.23
        , lifted-async       >= 0.10  && < 1
        , lifted-base        >= 0.2   && < 1
        , shakespeare        >= 2.0   && < 3
        , tagsoup            >= 0.14  && < 1
        , template-haskell   >  2.7   && < 3
        , text               >= 1     && < 3
        , typed-process      >= 0.2.1 && < 1
        , yaml               >= 0.8   && < 1
        , mtl                >= 2.2   && < 3
    if !os(windows)
        build-depends:  unix >= 2.4 && < 2.8
    default-language: Haskell2010

executable pandoc-plot
    main-is: Main.hs
    other-modules:
        ManPage
        ExampleConfig
        OpenFile
        Paths_pandoc_plot
    hs-source-dirs:
        executable
    ghc-options: -Wall -Wcompat -threaded -rtsopts -with-rtsopts=-N
    build-depends:
          base                  >= 4.11 && <5
        , containers
        , directory
        , filepath
        , gitrev                >= 1    && < 2
        , optparse-applicative  >= 0.14 && < 1
        , pandoc
        , pandoc-plot
        , pandoc-types          >= 1.21 && <2
        , template-haskell      >  2.7 && < 3
        , typed-process
        , 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
                   , filepath
                   , hspec-expectations
                   , pandoc-types         >= 1.20 && <= 2
                   , pandoc-plot
                   , tasty
                   , tasty-hunit
                   , tasty-hspec
                   , text
    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 && < 2
                   , template-haskell   > 2.7 && < 3
                   , text
    ghc-options:   -Wall -Wcompat -rtsopts -O2 -threaded -with-rtsopts=-N
    default-language: Haskell2010