dhall-lang / dhall-to-cabal

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

Pretty-print cabal-to-dhall's output #58

Closed quasicomputational closed 6 years ago

quasicomputational commented 6 years ago

cabal-to-dhall currently outputs a potentially-large, unformatted blob of Dhall. Considering especially that experimenting with cabal-to-dhall could be someone's first taste of Dhall, this is particularly bad UX. We should figure out how to wire up Dhall's pretty-printing to our output.

ocharles commented 6 years ago

Yep, that should be pretty simple - https://hackage.haskell.org/package/dhall-1.14.0/docs/Dhall-Pretty.html prettyExpr should do the job, and we can just strip annotations.