#110 Cabal file manipulations are broken

closed-fixed
JP Moresmau
Bug (46)
7
2009-10-07
2009-09-02
Thomas ten Cate
No

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.

Discussion

  • JP Moresmau
    JP Moresmau
    2009-09-11

    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.

     
  • 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.

     
  • JP Moresmau
    JP Moresmau
    2009-10-07

    Fixed in JP's branch (git://github.com/JPMoresmau/eclipsefp.git). We have a full Cabal parser in Java.

     
  • JP Moresmau
    JP Moresmau
    2009-10-07

    • status: open --> closed-fixed
     
  • JP Moresmau
    JP Moresmau
    2009-10-07

    • assigned_to: nobody --> jpmoresmau