When I have a simple module and i try to rename a symbol in VS Code I get from the editor the error
With “simple module” I mean jere something like this code:
-- File Cnt.hs
module Cnt where
mostFrequentChar' :: String -> Char -> Int -> (Char, Int)
mostFrequentChar' [] maxChar maxFreq = (maxChar, maxFreq)
mostFrequentChar' (c:cs) maxChar maxFreq =
let freq = count c (c:cs)
in if freq > maxFreq
then mostFrequentChar' cs c freq
else mostFrequentChar' cs maxChar maxFreq
where count x xs = length $ filter (== x) xs
No exports (what ever this is). I just want to rename mostFrequentChar'
to mostFrequentChar
But I can’t. Why’s that? Can I tweak VS Code’s HLS settings, so that the renaming works?
Many thanks in advance for any help.