aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2022-09-29 12:31:28 +0200
committerJohn MacFarlane <[email protected]>2022-09-30 08:33:40 -0700
commit084e246126d8177e29e8b8e4bc84d340ac847e02 (patch)
tree7dbf823d2e9c0dbccf579be69cff154890126778
parent1a1e6457c6a674a460877acaa6691e9dd6a29d29 (diff)
[API Change] Remove modules T.P.Writers.Custom and T.P.Readers.Custom.
The functions `writeCustom` and `readCustom` are available from module Text.Pandoc.Lua.
-rw-r--r--pandoc.cabal2
-rw-r--r--src/Text/Pandoc/App.hs2
-rw-r--r--src/Text/Pandoc/App/OutputSettings.hs2
-rw-r--r--src/Text/Pandoc/Readers/Custom.hs13
-rw-r--r--src/Text/Pandoc/Writers/Custom.hs14
5 files changed, 2 insertions, 31 deletions
diff --git a/pandoc.cabal b/pandoc.cabal
index 4c566f2a6..fb150d3d7 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -606,7 +606,6 @@ library
Text.Pandoc.Readers.Ipynb,
Text.Pandoc.Readers.CSV,
Text.Pandoc.Readers.RTF,
- Text.Pandoc.Readers.Custom,
Text.Pandoc.Writers,
Text.Pandoc.Writers.Native,
Text.Pandoc.Writers.Docbook,
@@ -628,7 +627,6 @@ library
Text.Pandoc.Writers.RST,
Text.Pandoc.Writers.Org,
Text.Pandoc.Writers.AsciiDoc,
- Text.Pandoc.Writers.Custom,
Text.Pandoc.Writers.Textile,
Text.Pandoc.Writers.MediaWiki,
Text.Pandoc.Writers.DokuWiki,
diff --git a/src/Text/Pandoc/App.hs b/src/Text/Pandoc/App.hs
index 9949a31db..cad3da9b7 100644
--- a/src/Text/Pandoc/App.hs
+++ b/src/Text/Pandoc/App.hs
@@ -64,6 +64,7 @@ import Text.Pandoc.App.OutputSettings (OutputSettings (..), optToOutputSettings)
import Text.Collate.Lang (Lang (..), parseLang)
import Text.Pandoc.Filter (Filter (JSONFilter, LuaFilter), Environment (..),
applyFilters)
+import Text.Pandoc.Lua (readCustom)
import Text.Pandoc.PDF (makePDF)
import Text.Pandoc.SelfContained (makeSelfContained)
import Text.Pandoc.Shared (eastAsianLineBreakFilter,
@@ -71,7 +72,6 @@ import Text.Pandoc.Shared (eastAsianLineBreakFilter,
defaultUserDataDir, tshow, textToIdentifier)
import Text.Pandoc.Writers.Shared (lookupMetaString)
import Text.Pandoc.Readers.Markdown (yamlToMeta)
-import Text.Pandoc.Readers.Custom (readCustom)
import qualified Text.Pandoc.UTF8 as UTF8
#ifndef _WINDOWS
import System.Posix.IO (stdOutput)
diff --git a/src/Text/Pandoc/App/OutputSettings.hs b/src/Text/Pandoc/App/OutputSettings.hs
index 685972348..ebbe2c1b2 100644
--- a/src/Text/Pandoc/App/OutputSettings.hs
+++ b/src/Text/Pandoc/App/OutputSettings.hs
@@ -39,7 +39,7 @@ import Text.Pandoc.App.FormatHeuristics (formatFromFilePaths)
import Text.Pandoc.App.Opt (Opt (..))
import Text.Pandoc.App.CommandLineOptions (engines, setVariable)
import Text.Pandoc.Highlighting (lookupHighlightingStyle)
-import Text.Pandoc.Writers.Custom (writeCustom)
+import Text.Pandoc.Lua (writeCustom)
import qualified Text.Pandoc.UTF8 as UTF8
readUtf8File :: PandocMonad m => FilePath -> m T.Text
diff --git a/src/Text/Pandoc/Readers/Custom.hs b/src/Text/Pandoc/Readers/Custom.hs
deleted file mode 100644
index 9935d1ee6..000000000
--- a/src/Text/Pandoc/Readers/Custom.hs
+++ /dev/null
@@ -1,13 +0,0 @@
-{- |
- Module : Text.Pandoc.Readers.Custom
- Copyright : Copyright (C) 2021-2022 John MacFarlane
- License : GNU GPL, version 2 or above
-
- Maintainer : John MacFarlane <[email protected]>
- Stability : alpha
- Portability : portable
-
-Supports custom parsers written in Lua which produce a Pandoc AST.
--}
-module Text.Pandoc.Readers.Custom ( readCustom ) where
-import Text.Pandoc.Lua.Reader ( readCustom )
diff --git a/src/Text/Pandoc/Writers/Custom.hs b/src/Text/Pandoc/Writers/Custom.hs
deleted file mode 100644
index 4cd42be62..000000000
--- a/src/Text/Pandoc/Writers/Custom.hs
+++ /dev/null
@@ -1,14 +0,0 @@
-{-# LANGUAGE LambdaCase #-}
-{-# LANGUAGE OverloadedStrings #-}
-{- |
- Module : Text.Pandoc.Writers.Custom
- Copyright : 2012-2022 John MacFarlane,
- License : GNU GPL, version 2 or above
- Maintainer : John MacFarlane <[email protected]>
-
-Conversion of 'Pandoc' documents to custom markup using
-a Lua writer.
--}
-module Text.Pandoc.Writers.Custom ( writeCustom ) where
-
-import Text.Pandoc.Lua.Writer ( writeCustom )