[cvs-nhc98] patch applied (nhc98): New utility: cabal-parse

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Tue Apr 3 09:44:57 EDT 2007


Tue Apr  3 06:37:46 PDT 2007  Malcolm.Wallace at cs.york.ac.uk
  * New utility: cabal-parse
  This simple command-line utility is intended to enable the easy
  retrieval of information from a .cabal file, e.g. for use in Makefiles
  or shell-scripts.
      Usage: cabal-parse [-slash] fieldname filename
  Where a field of the .cabal file contains a list, cabal-parse ensures
  (for instance) that interspersed commas are removed for simpler
  onward processing.  The optional -slash flag converts dots in module
  names to slashes, to help find source files.

     ./script/cabal-parse.hs -> ./src/libraries/cabal-parse.hs
    M ./Makefile -2 +8
    M ./configure -2 +8
    A ./script/cabal-parse.hs
    M ./src/libraries/cabal-parse.hs +126


More information about the Cvs-nhc98 mailing list