Skip to content

Set the default default-language to Haskell2010 #112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

quasicomputational
Copy link
Collaborator

This is another divergence from Cabal's defaults, but it's quite good
for our usability. We can figure out a plan to deal with Haskell2020
or whatever when it comes.

quasicomputational and others added 3 commits July 11, 2018 15:12
This is another divergence from Cabal's defaults, but it's quite good
for our usability. We can figure out a plan to deal with Haskell2020
or whatever when it comes.
@ocharles
Copy link
Member

I'm not convinced it's a good idea for dhall-to-cabal to make these calls. I think an empty package should match an empty package in Cabal.

@quasicomputational
Copy link
Collaborator Author

Hmm. The boilerplate does annoy me. I'm not convinced people are bothered by a difference between what Cabal does on empty input and what package-description-generation tools do (e.g., hpack has very opinionated defaults and it seems to work well). It's not a disaster if you'd rather keep it with an empty default since I can just fork the defaults locally.

@ocharles
Copy link
Member

Hmm. The boilerplate does annoy me

Then factor it out into a Dhall file 😄 You should be able to write your own more opinionated set of defaults, but I'm not sure it's dhall-ot-cabals place.

The hpack comparison is a fair point, and of course if the default isn't what someone wants then they will override the default as necessary. I'll have a think about this. But I do think the point of having a truly configurable format for Cabal files means that we don't need to form opinions.

@quasicomputational
Copy link
Collaborator Author

I'll open an issue to talk about ergonomics versus Cabal-faithfulness in defaults more generally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants