aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-02-20 22:16:39 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2016-02-20 22:16:39 -0800
commit9693de7f59ddd37837d2591691574cdda7f81cc0 (patch)
tree67f1ea6471b40c08e6ff5941159ba3b43e451180 /src/Text/Pandoc/Readers
parent29706ee02dcfd6f211bf3592babf627baae0a3e9 (diff)
downloadpandoc-9693de7f59ddd37837d2591691574cdda7f81cc0.tar.gz
Fixed some linter warnings.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r--src/Text/Pandoc/Readers/HTML.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Readers/HTML.hs b/src/Text/Pandoc/Readers/HTML.hs
index 03b790d0b..69df13aac 100644
--- a/src/Text/Pandoc/Readers/HTML.hs
+++ b/src/Text/Pandoc/Readers/HTML.hs
@@ -52,9 +52,9 @@ import Text.Pandoc.Parsing hiding ((<|>))
import Text.Pandoc.Walk
import qualified Data.Map as M
import Data.Maybe ( fromMaybe, isJust)
-import Data.List ( intercalate, isInfixOf, isPrefixOf, isSuffixOf )
+import Data.List ( intercalate, isInfixOf, isPrefixOf )
import Data.Char ( isDigit )
-import Control.Monad ( liftM, guard, when, mzero, void, unless )
+import Control.Monad ( guard, when, mzero, void, unless )
import Control.Arrow ((***))
import Control.Applicative ( (<|>) )
import Data.Monoid (First (..))
@@ -964,7 +964,7 @@ htmlInBalanced' tagname ts = fromMaybe [] $ go 0 ts
go n (t@(TagClose tn'):rest) | tn' == tagname =
(t :) <$> go (n - 1) rest
go n (t:ts') = (t :) <$> go n ts'
- go n [] = mzero
+ go _ [] = mzero
hasTagWarning :: [Tag String] -> Bool
hasTagWarning (TagWarning _:_) = True