Open
Description
Your environment
Which OS do you use?
Linux
Which version of GHC do you use and how did you install it?
9.8.2, ghcup
How is your project built (alternative: link to the project)?
single file
Which LSP client (editor/plugin) do you use?
neovim builtin
Which version of HLS do you use and how did you install it?
2.7.0.0, ghcup
Have you configured HLS in any way (especially: a hie.yaml
file)?
no
Steps to reproduce
Evaluate twice
-- |
-- >>> import Prettyprinter
--
-- >>> pretty "foo"
--
-- >>> pretty "foo\n"
--
-- >>> pretty "foo\n\n"
--
Expected behaviour
No diff for the last two test.
Actual behaviour
First evaluate:
-- |
-- >>> import Prettyprinter
--
-- >>> pretty "foo"
-- foo
--
-- >>> pretty "foo\n"
-- foo
--
-- >>> pretty "foo\n\n"
-- foo
-- <BLANKLINE>
--
Second evaluate:
-- |
-- >>> import Prettyprinter
--
-- >>> pretty "foo"
-- foo
--
-- >>> pretty "foo\n"
-- WAS foo
-- NOW foo
--
-- >>> pretty "foo\n\n"
-- WAS foo
-- WAS <BLANKLINE>
-- NOW foo
-- <BLANKLINE>
--