diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-02-20 22:16:39 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-02-20 22:16:39 -0800 |
commit | 9693de7f59ddd37837d2591691574cdda7f81cc0 (patch) | |
tree | 67f1ea6471b40c08e6ff5941159ba3b43e451180 /src/Text/Pandoc/Readers | |
parent | 29706ee02dcfd6f211bf3592babf627baae0a3e9 (diff) | |
download | pandoc-9693de7f59ddd37837d2591691574cdda7f81cc0.tar.gz |
Fixed some linter warnings.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r-- | src/Text/Pandoc/Readers/HTML.hs | 6 |
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 |