This is the preliminary version of the Ghost typing addition to visual Haskell, the idea is that whenever an explicit type signature is not given, the IDE will display the type inferred by GHC.
You can then click on the signature to insert it, or use the smart action associated with the name of the function.
Up next is the feature that when you have given a signature that doesn’t type check, the IDE will remove that signature and retry, if it succeeds the IDE will display a suggested signature.
Below is a GIF of how the first part works.
Oh and collapsible regions has been finished as well
if the function has a type signature it will collapse at the end of that declaration, if not it’ll collapse at the end of the function name.
There is a restriction to this however since GHC allows you to declare your signatures anywhere in the file. In order for the signature to be considered part of the function by collapsible regions it has to be end on the line before the binding.
Which means it can span multiple lines, the end just has to be before the binding, that way it also supports haddock documented type signatures.