ndmitchell / hlint

Haskell source code suggestions
Other
1.47k stars 195 forks source link

Out-of-the-box support for Dhall configuration #1269

Open the-dr-lazy opened 3 years ago

the-dr-lazy commented 3 years ago

Hey. Well, the YAML configurations all over the world are killing me. :) Sure, we can use Dhall and convert it to YAML. But it can be better. The maintenance cost of the conversion is not favorable. Are you open to out-of-the-box support of the Dhall language for the configuration?

ndmitchell commented 3 years ago

The problem is adding the Dhall dependency to HLint seems a bit like overkill. I think Dhall would need to end up being more popular before it became a viable path. A section on how to use Dhall with HLint in the README, plus maybe some Dhall helper functions to make configuring HLint with Dhall might encourage more adoption? If enough people were using Dhall with HLint I'd definitely add it.

sjakobi commented 3 years ago

For reference, here's a blog post that demonstrates how to configure HLint with Dhall: https://kowainik.github.io/posts/2018-09-09-dhall-to-hlint