haskell-language-server/plugins/hls-change-type-signature-plugin
2024-06-20 09:03:31 +01:00
..
src/Ide/Plugin Fix -Wredundant-constraints (#4044) 2024-02-04 19:07:56 +00:00
test Fix loss of 9.2 GHC version 2024-06-20 09:03:31 +01:00
change1.gif Change Type Signature Plugin (#2660) 2022-03-03 23:08:42 +00:00
change2.gif Change Type Signature Plugin (#2660) 2022-03-03 23:08:42 +00:00
README.md Fix Change Type Signature Plugin test suite for 9.2.1 (#2761) 2022-03-07 19:51:56 +00:00

Change Type Signature Plugin

The change type signature plugin provides a code action to change a user's current type signature to it's actual type signature. The plugin does not work in all error scenarios. Currently, the plugin uses GHC diagnostic messages to recover the actual type of a function. If the plugin receives enough information it can correctly change the signature.

Demo

Change Type Signature One

Change Type Signature Two

Changelog

1.0.0.0

  • First Release

1.0.1.0

  • Fix 9.2 Test failures (waitForProgressDone)
  • Add extra test scenarios for error message diffs in 9.2
  • Remove regex parsing for simple Text manipulation