diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2022-10-03 13:05:38 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-03 13:05:38 -0700 |
| commit | ad0532244adfbd0ca9596a27506ed6161e4bc225 (patch) | |
| tree | 70cdf0534234805fb650fa349745abea5814d65c /src/Text/Pandoc/Class/CommonState.hs | |
| parent | 2d565eda9ec6df702bc0381ccb60fc3cc9699318 (diff) | |
Separate out T.P.Data, T.P.Translations from T.P.Class. (#8348)
This makes T.P.Class more self-contained, and suitable for extraction
into a separate package if desired.
[API changes]
- T.P.Data is now an exported module, providing `readDataFile`,
`readDefaultDataFile` (both formerly provided by T.P.Class),
and also `getDataFileNames` (formerly unexported in
T.P.App.CommandLineOptions).
- T.P.Translations is now an exported module (along with
T.P.Translations.Types), providing `readTranslations`,
`getTranslations`, `setTranslations`, `translateTerm`,
`lookupTerm`, `readTranslations`, `Term(..)`, and `Translations`.
- T.P.Class: `readDataFile`, `readDefaultDataFile`, `setTranslations`,
and `translateTerm` are no longer exported.
`checkUserDataDir` is now exported.
- Text.Pandoc now exports Text.Pandoc.Data and `setTranslations`
and `translateTerm`.
Diffstat (limited to 'src/Text/Pandoc/Class/CommonState.hs')
| -rw-r--r-- | src/Text/Pandoc/Class/CommonState.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Class/CommonState.hs b/src/Text/Pandoc/Class/CommonState.hs index 796a4afd5..4e04b5add 100644 --- a/src/Text/Pandoc/Class/CommonState.hs +++ b/src/Text/Pandoc/Class/CommonState.hs @@ -22,7 +22,7 @@ import Data.Text (Text) import Text.Collate.Lang (Lang) import Text.Pandoc.MediaBag (MediaBag) import Text.Pandoc.Logging (LogMessage, Verbosity (WARNING)) -import Text.Pandoc.Translations (Translations) +import Text.Pandoc.Translations.Types (Translations) -- | 'CommonState' represents state that is used by all -- instances of 'PandocMonad'. Normally users should not |
