idris-lang / Idris2

A purely functional programming language with first class types
https://idris-lang.org/
Other
2.46k stars 369 forks source link

Add an option that dumps package details to JSON #3293

Closed mattpolzin closed 3 weeks ago

mattpolzin commented 1 month ago

Description

Adds a dump-ipkg-json option. It would be helpful to be able to "export" Idris2's package information in a format that is fairly universally understood. I have one definite use-case in mind, but I suspect that having authoritative access to this information would be useful in any number of build environments where build tooling is not written as an Idris app directly based on the compiler's API.

Should this change go in the CHANGELOG?