hls-change-type-signature-plugin: Change a declarations type signature with a Code Action

[ apache, development, library ] [ Propose Tags ]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 1.0.1.0, 1.0.1.1, 1.1.0.0
Dependencies base (>=4.12 && <5), ghcide (>=1.9 && <1.10), hls-plugin-api (>=1.6 && <1.7), lsp-types, regex-tdfa, syb, text, transformers, unordered-containers [details]
License Apache-2.0
Author Nick Suchecki
Maintainer nicksuchecki@gmail.com
Category Development
Source repo head: git clone https://github.com/haskell/haskell-language-server.git
Uploaded by hls_team at 2022-12-26T14:53:56Z
Distributions NixOS:1.1.0.0
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 800 total (107 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2022-12-26 [all 1 reports]

Readme for hls-change-type-signature-plugin-1.1.0.0

[back to package description]

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