Tehnix / ide-haskell-hie

Atom LSP plugin for HIE (Haskell IDE Engine)
https://atom.io/packages/ide-haskell-hie
MIT License
26 stars 6 forks source link

Feature Request - Insert Type #27

Closed theGhostJW closed 6 years ago

theGhostJW commented 6 years ago

It would be great to be able to click on a warning / error and insert a type signature

Tehnix commented 6 years ago

Insert type will eventually come via haskell-ide-engine (https://github.com/haskell/haskell-ide-engine#planned-features), since this is really just a thin wrapper around the LSP.

There is already the type information on hover though, was that the one you were thinking of inserting?

theGhostJW commented 6 years ago

Yes that would be the one. With -warn-missing-signatures and -Werror it comes up as an error (including the type info), but I notice the type info still comes up on hover so that would work.

Just to clarify - as this is purely dependent on haskel-ide-engine should I close it?

Tehnix commented 6 years ago

Inserting the type info that is displayed on hover would be at haskell-ide-engine, but being able to insert something from the generic warnings/error pop-ups would probably be atom-ide-ui's responsibility.

In any case, I'll close this, but do feel free to make tickets on the other two referring to this one if you want! :)

And thanks for being so understanding! :)