cvs commit: nhc98/src/libraries/HaXml/src/Text/XML/HaXml/Xtract Parse.hs

Malcolm Wallace malcolm at glass.cse.ogi.edu
Thu Mar 25 06:48:07 EST 2004


malcolm     2004/03/25 06:48:06 PST

  Modified files:
    src/libraries/HaXml/src/Text/XML/HaXml/Xtract Parse.hs 
  Log:
  When encountering a parse failure, rather than terminate the whole
  program with an explicit call to 'error', pass the error message
  up through an Either type to the caller.  The old API of the parser
  combinators is still available - the new versions are primed, e.g.
  papply', xmlParse', etc.
  
  Based on a suggestion (and some code) by Graham Klyne.
  
  Revision  Changes    Path
  1.6       +7 -6      nhc98/src/libraries/HaXml/src/Text/XML/HaXml/Xtract/Parse.hs


More information about the Cvs-libraries mailing list