haskell/hie-bios

Turn unknown fields in `hie.yaml` into warnings

オープン

#344 opened on 2022/04/13

 (1 件のコメント) (1 件のリアクション) (0 人の担当者)Haskell (70 件のフォーク)auto 404
ZuriHacgood first issue

Repository metrics

Stars
 (198 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Until now, we threw an error message. The point being that you notice you didn't write the correct configuration and something is not right.

This will make it hard to introduce new optional keys, because older HLS versions will now choke on that config.

I think a warning is better. cabal-install also does this:

$ cabal build
Warning: /home/hasufell/git/stack2cabal/cabal.project: Unrecognized field
'foo' on line 11

Originally posted by @hasufell in https://github.com/haskell/hie-bios/issues/329#issuecomment-1061085723

コントリビューターガイド