dhall-lang / dhall-to-cabal

Compile Dhall expressions to Cabal files
MIT License
100 stars 19 forks source link

Add a warning header to the generated .cabal files. #51

Closed quasicomputational closed 6 years ago

quasicomputational commented 6 years ago

Closes #50.

quasicomputational commented 6 years ago

Another thing we might do is to add an -o flag, and then reproduce the exact command if both the input and output files are specified rather than done with redirection?

ocharles commented 6 years ago

Seems reasonable, yea.

quasicomputational commented 6 years ago

Oh, hang on. We do know the output file name: it has to be the package's name then .cabal. I'll implement that instead.

ocharles commented 6 years ago

We do know the output file name: it has to be the package's name then .cabal.

Why? Surely I can call the .dhall file whatever I want.

Edit: doh, you're talking about the .cabal file. Got it. This looks good. Thanks!