`ghci` mode for machine interaction
Quick feasibility question before writing up a GHC proposal:
There are a ton of tools that have used ghci in the past for providing fast feedback to users. ghcid
being the most prominent, but intero
, dante
, and other tools, too. One common issue has been the need to parse GHCi's human-readable output into useful information.
Would it be feasible to have a ghci
mode that was intended for machine consumption? The MVP here would just print JSON objects on each line with the relevant information, I'd think.