haskell/hie-bios

Turn unknown fields in `hie.yaml` into warnings

开放

#344 创建于 2022年4月13日

 (1 条评论) (1 个反应) (0 位负责人)Haskell (70 个派生)auto 404
ZuriHacgood first issue

仓库指标

星标
 (198 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南