aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2018-04-03 15:41:10 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2018-04-03 15:47:23 +0300
commit7de6f085afb5734c94dc33a4d10b900f51369715 (patch)
tree83c4d3e1539789ff55872d23bb51a110b189fc6a /src/Text/Pandoc/Readers
parent8837af879add64e4c0e04505e0a469620d6404c1 (diff)
downloadpandoc-7de6f085afb5734c94dc33a4d10b900f51369715.tar.gz
Muse reader: rewrite parseDirectiveKey without do
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r--src/Text/Pandoc/Readers/Muse.hs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Readers/Muse.hs b/src/Text/Pandoc/Readers/Muse.hs
index c3ae0de4e..bfde07eae 100644
--- a/src/Text/Pandoc/Readers/Muse.hs
+++ b/src/Text/Pandoc/Readers/Muse.hs
@@ -210,9 +210,7 @@ someUntil p end = do
-- While not documented, Emacs Muse allows "-" in directive name
parseDirectiveKey :: PandocMonad m => MuseParser m String
-parseDirectiveKey = do
- char '#'
- many (letter <|> char '-')
+parseDirectiveKey = char '#' *> many (letter <|> char '-')
parseEmacsDirective :: PandocMonad m => MuseParser m (String, F Inlines)
parseEmacsDirective = do