etlas icon indicating copy to clipboard operation
etlas copied to clipboard

etlas project --json

Open rahulmutt opened this issue 8 years ago • 1 comments

For interop with other build tools, it would be great if etlas can spit out the info in a .cabal file in a json format.

{"library" : {"hs-source-dirs":...}, "executable":{"name":"..", ...}

etlas project [target] should be thought of as a command that dumps the contents of the target's cabal file. If no target is specified, the current project's cabal file is used.

rahulmutt avatar Sep 22 '17 00:09 rahulmutt

Talking with @rahulmutt we agreed in it would be useful that etlas project could generate the info for differents config formats: cabal, dhall or gradle (maybe dhall could replace json cause it is easily conveted to it) Related with https://github.com/typelead/eta/issues/720

jneira avatar Jan 22 '19 13:01 jneira