atom-haskell-archive / haskell-ghc-mod

haskell-ghc-mod atom package
https://atom.io/packages/haskell-ghc-mod
MIT License
69 stars 20 forks source link

Proposition: Remove duplicated first line (short type info) in ghd-mod hints #169

Closed varosi closed 6 years ago

varosi commented 7 years ago

atom1

As I understand first line is short type info and second, third, etc are description. My proposition is if "short description" is literally contained inside "full type information" to remove it (first line), so only full description is left. This will minimize type information clutter and will normalize information inside it a bit.

lierdakil commented 7 years ago

I understand where you're coming from, but there are two reasons for having it this way:

varosi commented 7 years ago

For the second point - it could be enabled in Debug mode to visualize both. But in normal non-debug to remove duplicate. By removing duplicate, I mean just search for first line in full text information literally - infix search. Not more complex than that.

lierdakil commented 6 years ago

Implemented in v2.2.1

varosi commented 6 years ago

Works great! Thanks a lot!