Output of haskell-language-server-wrapper --version
2.0.0.1 (GHC: 9.4.4)
How to reproduce the issue
I made a repr project repo here. Please go to Q1to10.hs
Here's a snippet of the problematic code:
-- Recursive method
-- We can only match on the left side of the list
-- which means we can only construct the list from the right (reversed).
-- This is less efficient because Haskell's lists are linked lists.
myReverse :: [a] -> [a]
myReverse [] = []
myReverse (x : xs) = myReverse xs ++ [x]
-- 8
-- >>> head [1,2,3]
compress :: (Eq a) => [a] -> [a]
compress [] = []
compress (x : xs) = x : compress (dropWhile (== x) xs)
If I keep the paragraph of code above --8, the codeaction button would disappear and the command to evaluate would not run.
I also tried to add another eval line above "myReverse". It the line above "myReverse" would work and the one below wouldn't.
Neovim version (nvim -v)
v0.9.1
Operating system/version
macOS 13.4.1
Output of
haskell-language-server-wrapper --version
2.0.0.1 (GHC: 9.4.4)
How to reproduce the issue
I made a repr project repo here. Please go to
Q1to10.hs
Here's a snippet of the problematic code:
If I keep the paragraph of code above
--8
, the codeaction button would disappear and the command to evaluate would not run.I also tried to add another eval line above "myReverse". It the line above "myReverse" would work and the one below wouldn't.
Expected behaviour
Evaluate lines starting with
-- >>>
.Actual behaviour
Code action button disappears, command / keybind doesn't actuate the evaluation.
Log files
https://gist.github.com/leana8959/5e417d4c36e84f8b14f1a1b33bd5d9e1
The minimal config used to reproduce this issue.