haskell/hie-bios

Turn unknown fields in `hie.yaml` into warnings

Aberta

#344 aberto em 13 de abr. de 2022

 (1 comentário) (1 reação) (0 responsável)Haskell (70 forks)auto 404
ZuriHacgood first issue

Métricas do repositório

Stars
 (198 estrelas)
Métricas de merge de PR
 (Mesclagem média 12d 14h) (2 fundiu PRs em 30d)

Description

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

Guia do colaborador