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

Hovering over function parameter name gives exception #236

Closed varosi closed 6 years ago

varosi commented 6 years ago

If you hover over function parameter name Ghc-mod windows is shown with exception:

EXCEPTION: info: Not in scEXCEPTION: info: Not in scope: success'EXCEPTION: info: Not in scope:bank'

but after a second or so a tooltip show type information. So basically it's working, but this window pop-up each time is annoying and takes screen space (which is precious on a laptop display).

varosi commented 6 years ago

It's similar for imports with exception:

EXCEPTION: info: Not in scope: `Persist'

In my opinion for type information hints it's better not to pop-up such windows, i.e. to hide such errors and provide them to the user only if she's willing to check them somewhere.

varosi commented 6 years ago

Sorry, I found a way to suppress it. There is a setting for that to show error messages only in development console. So may be this issue could be turned out so this to be default option?

lierdakil commented 6 years ago

Uh... it is the default. https://github.com/atom-haskell/haskell-ghc-mod/blob/5921c5a89b309e0f3f5c56580084d96be90ac55d/src/config.ts#L192-L202

varosi commented 6 years ago

Thanks! Sorry! May be only my settings was altered.