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

[ apache, development, library ] [ Propose Tags ] [ Report a vulnerability ]

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, 1.1.0.1, 2.0.0.0, 2.0.0.1, 2.1.0.0, 2.2.0.0, 2.3.0.0, 2.4.0.0, 2.5.0.0, 2.6.0.0
Dependencies base (>=4.12 && <5), containers, ghcide (==2.5.0.0), hls-plugin-api (==2.5.0.0), 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 2023-12-11T07:46:43Z
Distributions Arch:1.1.0.1
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 2845 total (76 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-12-11 [all 1 reports]

Readme for hls-change-type-signature-plugin-2.5.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