summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Filter
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text/Pandoc/Filter')
-rw-r--r--src/Text/Pandoc/Filter/Pyplot.hs3
-rw-r--r--src/Text/Pandoc/Filter/Scripting.hs4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Filter/Pyplot.hs b/src/Text/Pandoc/Filter/Pyplot.hs
index 1aa5c31..79eeb30 100644
--- a/src/Text/Pandoc/Filter/Pyplot.hs
+++ b/src/Text/Pandoc/Filter/Pyplot.hs
@@ -23,6 +23,7 @@ module Text.Pandoc.Filter.Pyplot (
import Control.Monad ((>=>))
import qualified Data.Map.Strict as M
+import Data.Monoid ((<>))
import System.Directory (doesDirectoryExist)
import System.FilePath (isValid, replaceExtension, takeDirectory)
@@ -147,4 +148,4 @@ makePlot = makePlot' >=> either (fail . showError) return
-- | Walk over an entire Pandoc document, changing appropriate code blocks
-- into figures.
plotTransform :: Pandoc -> IO Pandoc
-plotTransform = walkM makePlot \ No newline at end of file
+plotTransform = walkM makePlot
diff --git a/src/Text/Pandoc/Filter/Scripting.hs b/src/Text/Pandoc/Filter/Scripting.hs
index 18cb79a..c8a4589 100644
--- a/src/Text/Pandoc/Filter/Scripting.hs
+++ b/src/Text/Pandoc/Filter/Scripting.hs
@@ -24,7 +24,7 @@ import System.FilePath ((</>))
import System.IO.Temp (getCanonicalTemporaryDirectory)
import System.Process.Typed (runProcess, shell)
-import Data.Monoid (Any(..))
+import Data.Monoid (Any(..), (<>))
-- | String representation of a Python script
type PythonScript = String
@@ -65,4 +65,4 @@ hasBlockingShowCall script = anyOf
]
where
scriptLines = lines script
- anyOf xs = getAny $ mconcat $ Any <$> xs \ No newline at end of file
+ anyOf xs = getAny $ mconcat $ Any <$> xs