diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-09-28 11:56:51 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-09-28 11:56:51 -0700 |
commit | c86691fb84ec830086bc9b5e54b1ec8e41d160c8 (patch) | |
tree | bff78fc2259df9ddad1edde9d57b0f17a3877e68 /src/Text/Pandoc/Readers/RST.hs | |
parent | 981b5de790d7625b717083cb1bcf6a88224f34dd (diff) | |
download | pandoc-c86691fb84ec830086bc9b5e54b1ec8e41d160c8.tar.gz |
Use Prelude.fail to avoid ambiguity with fail from GHC.Base.
Diffstat (limited to 'src/Text/Pandoc/Readers/RST.hs')
-rw-r--r-- | src/Text/Pandoc/Readers/RST.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/RST.hs b/src/Text/Pandoc/Readers/RST.hs index fd20351b4..ce7af9866 100644 --- a/src/Text/Pandoc/Readers/RST.hs +++ b/src/Text/Pandoc/Readers/RST.hs @@ -312,7 +312,7 @@ doubleHeader' = try $ do txt <- trimInlines . mconcat <$> many1 (notFollowedBy blankline >> inline) pos <- getPosition let len = sourceColumn pos - 1 - when (len > lenTop) $ fail "title longer than border" + when (len > lenTop) $ Prelude.fail "title longer than border" blankline -- spaces and newline count lenTop (char c) -- the bottom line blanklines |