summaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2022-11-06 12:47:01 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2022-11-06 12:47:01 -0800
commit036aac385129c193da14e8f5fec2944061b86723 (patch)
tree57377e658614cc0cd5fe7cc402e951b3793ae22c /src/Text
parent2682c79e957162db0bca1d90d29d2710b14e8e90 (diff)
Fix warnings.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Writers/Shared.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Writers/Shared.hs b/src/Text/Pandoc/Writers/Shared.hs
index 0661832ff..362c4ac22 100644
--- a/src/Text/Pandoc/Writers/Shared.hs
+++ b/src/Text/Pandoc/Writers/Shared.hs
@@ -44,8 +44,8 @@ module Text.Pandoc.Writers.Shared (
where
import Safe (lastMay)
import qualified Data.ByteString.Lazy as BL
-import Data.Maybe (fromMaybe, isNothing)
-import Control.Monad (zipWithM, mfilter)
+import Data.Maybe (isNothing)
+import Control.Monad (zipWithM)
import Data.Aeson (ToJSON (..), encode)
import Data.Char (chr, ord, isSpace, isLetter)
import Data.List (groupBy, intersperse, transpose, foldl')
@@ -481,7 +481,7 @@ tocEntryToLink secinfo = headerLink
headerText ("#" <> ident, "")]
tocToList :: Int -> Tree SecInfo -> Block
-tocToList tocDepth (Node secinfo subtrees)
+tocToList tocDepth (Node _ subtrees)
= BulletList (toItems subtrees)
where
toItems = map go . filter isBelowTocDepth