diff options
| author | Albert Krewinkel <[email protected]> | 2022-09-29 12:31:28 +0200 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-09-30 08:33:40 -0700 |
| commit | 084e246126d8177e29e8b8e4bc84d340ac847e02 (patch) | |
| tree | 7dbf823d2e9c0dbccf579be69cff154890126778 /src | |
| parent | 1a1e6457c6a674a460877acaa6691e9dd6a29d29 (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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Text/Pandoc/App.hs | 2 | ||||
| -rw-r--r-- | src/Text/Pandoc/App/OutputSettings.hs | 2 | ||||
| -rw-r--r-- | src/Text/Pandoc/Readers/Custom.hs | 13 | ||||
| -rw-r--r-- | src/Text/Pandoc/Writers/Custom.hs | 14 |
4 files changed, 2 insertions, 29 deletions
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 ) |
