aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers/Docx/Fields.hs
diff options
context:
space:
mode:
authorJoseph C. Sible <josephcsible@users.noreply.github.com>2020-02-08 12:12:01 -0500
committerGitHub <noreply@github.com>2020-02-08 09:12:01 -0800
commit12c75701be4b87fc438be68af5658d71e5578f62 (patch)
tree74919a84c230a75219ecb90bba10b27eab438595 /src/Text/Pandoc/Readers/Docx/Fields.hs
parente97a99616e05c3cfb7baea37a5b9fac7689f9b18 (diff)
downloadpandoc-12c75701be4b87fc438be68af5658d71e5578f62.tar.gz
Use <$> instead of >>= and return (#6128)
Diffstat (limited to 'src/Text/Pandoc/Readers/Docx/Fields.hs')
-rw-r--r--src/Text/Pandoc/Readers/Docx/Fields.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Docx/Fields.hs b/src/Text/Pandoc/Readers/Docx/Fields.hs
index ececf94c7..fe15c59e9 100644
--- a/src/Text/Pandoc/Readers/Docx/Fields.hs
+++ b/src/Text/Pandoc/Readers/Docx/Fields.hs
@@ -42,7 +42,7 @@ escapedQuote = string "\\\"" $> "\\\""
inQuotes :: Parser T.Text
inQuotes =
- try escapedQuote <|> (anyChar >>= (\c -> return $ T.singleton c))
+ try escapedQuote <|> (T.singleton <$> anyChar)
quotedString :: Parser T.Text
quotedString = do