aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/Docx
diff options
context:
space:
mode:
authorJoseph C. Sible <josephcsible@users.noreply.github.com>2020-02-08 12:11:00 -0500
committerGitHub <noreply@github.com>2020-02-08 09:11:00 -0800
commite97a99616e05c3cfb7baea37a5b9fac7689f9b18 (patch)
tree9d849071cfe9257d4bde91049704d2b392989f08 /src/Text/Pandoc/Readers/Docx
parent02ff42b1783303f9f4cdd160ff0c9ff04a297126 (diff)
downloadpandoc-e97a99616e05c3cfb7baea37a5b9fac7689f9b18.tar.gz
Clean up after "hlint --refactor" (#6129)
HLint's automatic refactoring isn't quite perfect, so some of its changes were overcomplicated, wrong, or created new findings. Clean these up.
Diffstat (limited to 'src/Text/Pandoc/Readers/Docx')
-rw-r--r--src/Text/Pandoc/Readers/Docx/Fields.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Readers/Docx/Fields.hs b/src/Text/Pandoc/Readers/Docx/Fields.hs
index 905d6f4c4..ececf94c7 100644
--- a/src/Text/Pandoc/Readers/Docx/Fields.hs
+++ b/src/Text/Pandoc/Readers/Docx/Fields.hs
@@ -17,7 +17,7 @@ module Text.Pandoc.Readers.Docx.Fields ( FieldInfo(..)
) where
import Prelude
-import Data.Functor (($>))
+import Data.Functor (($>), void)
import qualified Data.Text as T
import Text.Parsec
import Text.Parsec.Text (Parser)
@@ -50,7 +50,7 @@ quotedString = do
T.concat <$> manyTill inQuotes (try (char '"'))
unquotedString :: Parser T.Text
-unquotedString = T.pack <$> manyTill anyChar (try $ lookAhead space Data.Functor.$> () <|> eof)
+unquotedString = T.pack <$> manyTill anyChar (try $ void (lookAhead space) <|> eof)
fieldArgument :: Parser T.Text
fieldArgument = quotedString <|> unquotedString