cvs commit: fptools/libraries/Cabal/Distribution PackageDescription.hs ParseUtils.hs

Isaac Jones ijones at haskell.org
Fri Jan 7 02:18:07 EST 2005


ijones      2005/01/06 23:18:07 PST

  Modified files:
    libraries/Cabal/Distribution PackageDescription.hs 
                                 ParseUtils.hs 
  Log:
  fixed three bugs in the parser and pretty printer
  
  I found these with a unit test like:
  parse (prettyPrint (parse s)) == parse s
  
  Two of the bugs were passing the wrong accessor function to the pretty
  printer.
  
  The third bug was that the pretty printer rendered "foo\\bar" as
  "foo\bar", but actually in order to get the slash into the string, the
  user would have to have used the quote syntax.  I think we decided
  that the quote syntax meant a haskell string, so they should input it
  as "foo\\bar", of course internally represented as "foo\bar', but when
  printed, it should show two slashes again.
  
  Revision  Changes    Path
  1.15      +3 -3      fptools/libraries/Cabal/Distribution/PackageDescription.hs
  1.10      +6 -3      fptools/libraries/Cabal/Distribution/ParseUtils.hs


More information about the Cvs-libraries mailing list