git.iko.soy/typeable/pandoc
on master help sign in
Muse reader: fix compiler warning

lambda variable `st` shadowed an existing variable.

commit705145956d8fbb77aa0a63b87d00a10660ca3279 authorJesse Rosenthal <jrosenthal@jhu.edu> dateTue 20 Feb 2018, 09:17 (9 years ago) parentb9b66d3
1 file changed+1−1
src/Text/Pandoc/Readers/Muse.hs+1−1
src/Text/Pandoc/Readers/Muse.hs+1−1
@@ -912,7 +912,7 @@ link = try $ do
912912 guard $ not $ museInLink st
913913 setState $ st{ museInLink = True }
914914 (url, title, content) <- linkText
915− updateState (\st -> st { museInLink = False })
915+ updateState (\state -> state { museInLink = False })
916916 return $ case stripPrefix "URL:" url of
917917 Nothing -> if isImageUrl url
918918 then B.image url title <$> fromMaybe (return mempty) content