On 14 Mar 2013, at 14:53, Duncan Coutts wrote: > Why did I choose parsec? Practicality dictates that I can only use > things in the core libraries, and the nearest thing we have to that is > the parser lib that is in the HP.
I fully agree that a real parser is needed for Cabal files. I implemented one myself, many years ago, using the polyparse library, and using a hand-written lexer. Feel free to reuse it (attached, together with a sample program) if you like, although I expect it has bit-rotted a little over time. Regards, Malcolm
cabal-parse2.hs
Description: Binary data
CabalParse2.hs
Description: Binary data
_______________________________________________ cabal-devel mailing list cabal-devel@haskell.org http://www.haskell.org/mailman/listinfo/cabal-devel