Muse reader: fix compiler warning
lambda variable `st` shadowed an existing variable.
This commit is contained in:
parent
b9b66d3b29
commit
705145956d
1 changed files with 1 additions and 1 deletions
|
@ -912,7 +912,7 @@ link = try $ do
|
||||||
guard $ not $ museInLink st
|
guard $ not $ museInLink st
|
||||||
setState $ st{ museInLink = True }
|
setState $ st{ museInLink = True }
|
||||||
(url, title, content) <- linkText
|
(url, title, content) <- linkText
|
||||||
updateState (\st -> st { museInLink = False })
|
updateState (\state -> state { museInLink = False })
|
||||||
return $ case stripPrefix "URL:" url of
|
return $ case stripPrefix "URL:" url of
|
||||||
Nothing -> if isImageUrl url
|
Nothing -> if isImageUrl url
|
||||||
then B.image url title <$> fromMaybe (return mempty) content
|
then B.image url title <$> fromMaybe (return mempty) content
|
||||||
|
|
Loading…
Reference in a new issue