diff options
| author | John MacFarlane <[email protected]> | 2022-10-19 12:46:15 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2022-10-19 12:46:15 -0700 |
| commit | ec278d2b60e329040c712b51c32fddbcd180191b (patch) | |
| tree | e05ef4bd816c1c5e9afc5a8deed8b68f55865999 /src/Text/Pandoc/App/CommandLineOptions.hs | |
| parent | fe137c9d403b78eb508c6514c9234eb8fe4d77d1 (diff) | |
Text.Pandoc.Shared: remove `ordNub` [API change].
This is just `nubOrd` from Data.Containers.ListUtils.
Diffstat (limited to 'src/Text/Pandoc/App/CommandLineOptions.hs')
| -rw-r--r-- | src/Text/Pandoc/App/CommandLineOptions.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Text/Pandoc/App/CommandLineOptions.hs b/src/Text/Pandoc/App/CommandLineOptions.hs index 771569f9b..b57a16fc6 100644 --- a/src/Text/Pandoc/App/CommandLineOptions.hs +++ b/src/Text/Pandoc/App/CommandLineOptions.hs @@ -25,6 +25,7 @@ module Text.Pandoc.App.CommandLineOptions ( import Control.Monad import Control.Monad.Trans import Control.Monad.State.Strict +import Data.Containers.ListUtils (nubOrd) import Data.Aeson.Encode.Pretty (encodePretty', Config(..), keyOrder, defConfig, Indent(..), NumberFormat(..)) import Data.Bifunctor (second) @@ -50,7 +51,7 @@ import Text.Pandoc.App.Opt (Opt (..), LineEnding (..), IpynbOutput (..), fullDefaultsPath) import Text.Pandoc.Filter (Filter (..)) import Text.Pandoc.Highlighting (highlightingStyles, lookupHighlightingStyle) -import Text.Pandoc.Shared (ordNub, safeStrRead) +import Text.Pandoc.Shared (safeStrRead) import Text.Printf import qualified Control.Exception as E import qualified Data.ByteString as BS @@ -115,7 +116,7 @@ engines = map ("html",) htmlEngines ++ ] pdfEngines :: [String] -pdfEngines = ordNub $ map snd engines +pdfEngines = nubOrd $ map snd engines -- | A list of functions, each transforming the options data structure -- in response to a command-line option. |
