Haskell-language-server: Tone down the implicit cradle import warnings

Created on 24 Nov 2020  路  4Comments  路  Source: haskell/haskell-language-server

Your environment

I am using HLS 0.6. Since I installed directly from VS Code I have no HLS or HLS wrapper on my path to probe tools. Windows, VS Code.

Steps to reproduce

Open Shake with no hie.yaml. Observe that each and every file I open produces a warning about an implicit prelude. I just dismissed 25 such warnings.

Expected behaviour

One warning. Once per session seems plenty.

Actual behaviour

Many warnings.

ghcide implicit-hie enhancement

Most helpful comment

Or no warnings by setting a config option! I don't think I've ever changed my behavior after getting one of those warnings.

All 4 comments

Or no warnings by setting a config option! I don't think I've ever changed my behavior after getting one of those warnings.

Or maybe the warnings are no longer necessary? It used to be that an implicit cradle was a guarantee something would go wrong. Nowadays I have way more success with implicit cradles than explicit ones.

@ndmitchell i was a little bit confused for the

implicit prelude

in the description, i suppose you wanted to mean impicit cradle.

I think it works well enough to demote it again (was done from warning to info) to a log message

Oops! Too much time dealing with implicit prelude stuff - thanks for the fix :). Agreed, a log message might be the way to go.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

expipiplus1 picture expipiplus1  路  4Comments

Carter0 picture Carter0  路  3Comments

alanz picture alanz  路  4Comments

expipiplus1 picture expipiplus1  路  3Comments

danbroooks picture danbroooks  路  3Comments