Manipulating certain fields in a Cabal file used to be done through Cohatoe, but that is now removed. Scion should perform this task through the Cabal API.
The Cabal file format is not that complicated, and Leif already started a parser. Is it worth adding methods in Scion for reading/modifying a Cabal file? Exposing the file through JSON may be as complicated as having a parser/modifier in Eclipse. I wouldn't think having native Java support of Cabal files is too much duplication.
Thomas ten Cate
You could well be right. I haven't looked at it in detail. If the parser from Distribution.Simple is readable enough (it probably is) then it should be straightforward to port it to Java.
Fixed in JP's branch (git://github.com/JPMoresmau/eclipsefp.git). We have a full Cabal parser in Java.