Code action "expand positional record" produces invalid code. #4564
Labels
component: hls-explicit-record-fields-plugin
Issues related to the hls-explicit-record-fields-plugin
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Your environment
HLS version is
Version 2.9.0.1 x86_64 ghc-9.10.1
under VSCode/LinuxSteps to reproduce
See below under actual behaviour.
Expected behaviour
Code actions on valid code should result in valid code.
Actual behaviour
Given this snippet:
HLS suggests replacing
(MkT x)
withMkT { fa = x }
.However this fails to typecheck. As the first expression has type
Char -> T
while the later has typeT
The text was updated successfully, but these errors were encountered: