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
|
cabal-version: 2.4
name: pandoc-lua-engine
version: 0.5.1
build-type: Simple
license: GPL-2.0-or-later
license-file: COPYING.md
copyright: © 2006-2024 John MacFarlane, 2017-2024 Albert Krewinkel
author: John MacFarlane, Albert Krewinkel
maintainer: Albert Krewinkel <albert@hslua.org>
bug-reports: https://github.com/jgm/pandoc/issues
homepage: https://pandoc.org
category: Text
synopsis: Lua engine to power custom pandoc conversions
description: This package provides a pandoc scripting engine based on
Lua.
extra-source-files: README.md
, test/bytestring.bin
, test/bytestring.lua
, test/bytestring-reader.lua
, test/extensions.lua
, test/lua/*.lua
, test/lua/module/*.lua
, test/lua/module/include.tex
, test/lua/module/partial.test
, test/lua/module/sample.svg
, test/lua/module/sample.epub
, test/lua/module/tiny.epub
, test/sample.lua
, test/tables.custom
, test/tables.native
, test/testsuite.native
, test/writer.custom
, test/writer-template.lua
, test/writer-template.out.txt
source-repository head
type: git
location: https://github.com/jgm/pandoc.git
subdir: pandoc-lua-engine
flag repl
Description: Include pandoc Lua repl.
Default: True
common common-options
default-language: Haskell2010
build-depends: base >= 4.12 && < 5
ghc-options: -Wall -fno-warn-unused-do-bind
-Wincomplete-record-updates
-Wnoncanonical-monad-instances
-Wcpp-undef
-Wincomplete-uni-patterns
-Widentities
-Wpartial-fields
-Wmissing-export-lists
-Wmissing-signatures
-fhide-source-paths
if impl(ghc >= 8.10)
ghc-options: -Wunused-packages
if impl(ghc >= 9.0)
ghc-options: -Winvalid-haddock
library
import: common-options
hs-source-dirs: src
exposed-modules: Text.Pandoc.Lua
other-modules: Text.Pandoc.Lua.Custom
, Text.Pandoc.Lua.Documentation
, Text.Pandoc.Lua.Engine
, Text.Pandoc.Lua.Filter
, Text.Pandoc.Lua.Global
, Text.Pandoc.Lua.Init
, Text.Pandoc.Lua.Module
, Text.Pandoc.Lua.Marshal.Chunks
, Text.Pandoc.Lua.Marshal.CommonState
, Text.Pandoc.Lua.Marshal.Context
, Text.Pandoc.Lua.Marshal.Format
, Text.Pandoc.Lua.Marshal.ImageSize
, Text.Pandoc.Lua.Marshal.LogMessage
, Text.Pandoc.Lua.Marshal.PandocError
, Text.Pandoc.Lua.Marshal.ReaderOptions
, Text.Pandoc.Lua.Marshal.Reference
, Text.Pandoc.Lua.Marshal.Sources
, Text.Pandoc.Lua.Marshal.Template
, Text.Pandoc.Lua.Marshal.WriterOptions
, Text.Pandoc.Lua.Module.CLI
, Text.Pandoc.Lua.Module.Format
, Text.Pandoc.Lua.Module.Image
, Text.Pandoc.Lua.Module.JSON
, Text.Pandoc.Lua.Module.Log
, Text.Pandoc.Lua.Module.MediaBag
, Text.Pandoc.Lua.Module.Pandoc
, Text.Pandoc.Lua.Module.Path
, Text.Pandoc.Lua.Module.Scaffolding
, Text.Pandoc.Lua.Module.Structure
, Text.Pandoc.Lua.Module.System
, Text.Pandoc.Lua.Module.Template
, Text.Pandoc.Lua.Module.Text
, Text.Pandoc.Lua.Module.Types
, Text.Pandoc.Lua.Module.Utils
, Text.Pandoc.Lua.Orphans
, Text.Pandoc.Lua.PandocLua
, Text.Pandoc.Lua.Run
, Text.Pandoc.Lua.SourcePos
, Text.Pandoc.Lua.Writer.Classic
, Text.Pandoc.Lua.Writer.Scaffolding
build-depends: aeson
, bytestring >= 0.9 && < 0.13
, crypton >= 0.30 && < 1.1
, citeproc >= 0.8 && < 0.14
, containers >= 0.6.0.1 && < 0.9
, data-default >= 0.4 && < 0.9
, doclayout >= 0.5 && < 0.6
, doctemplates >= 0.11 && < 0.12
, exceptions >= 0.8 && < 0.11
, hslua >= 2.5 && < 2.6
, hslua-module-doclayout>= 1.2 && < 1.3
, hslua-module-path >= 1.2 && < 1.3
, hslua-module-system >= 1.3 && < 1.4
, hslua-module-text >= 1.2 && < 1.3
, hslua-module-version >= 1.2 && < 1.3
, hslua-module-zip >= 1.1.5 && < 1.3
, lpeg >= 1.1 && < 1.2
, mtl >= 2.2 && < 2.4
, pandoc >= 3.9 && < 3.10
, pandoc-lua-marshal >= 0.3 && < 0.4
, pandoc-types >= 1.22 && < 1.24
, parsec >= 3.1 && < 3.2
, text >= 1.1.1 && < 2.2
if flag(repl)
build-depends: hslua-repl >= 0.1.1 && < 0.2
cpp-options: -DINCLUDE_REPL
test-suite test-pandoc-lua-engine
import: common-options
type: exitcode-stdio-1.0
main-is: test-pandoc-lua-engine.hs
hs-source-dirs: test
build-depends: pandoc-lua-engine
, bytestring
, directory
, data-default
, exceptions >= 0.8 && < 0.11
, filepath
, hslua >= 2.5 && < 2.6
, pandoc
, pandoc-types >= 1.22 && < 1.24
, tasty
, tasty-golden
, tasty-hunit
, tasty-lua >= 1.1 && < 1.2
, text >= 1.1.1 && < 2.2
other-modules: Tests.Lua
, Tests.Lua.Module
, Tests.Lua.Reader
, Tests.Lua.Writer
|