Changes between Version 6 and Version 7 of ReadClass


Ignore:
Timestamp:
Jan 30, 2006 7:36:51 PM (9 years ago)
Author:
malcolm.wallace@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ReadClass

    v6 v7  
    2828  GHC has used a new `Read` class based on these parsers since 5.04 (July 2002). 
    2929 
    30  * Malcolm's experimental [http://nhc98.blogspot.com/#113301726218243351 Poly parser] in the development version of [http://www.cs.york.ac.uk/fp/HaXml-1.14/ HaXml]. 
     30 * Malcolm's experimental [http://nhc98.blogspot.com/#113301726218243351 Poly TextParser] in the development version of [http://www.cs.york.ac.uk/fp/HaXml-1.14/ HaXml]. 
    3131    * monadic interface, invoked with 
    3232      {{{ 
    33 runParser :: Parser t a -> [t] -> (Either String a, [t]) 
     33runParser :: TextParser a -> String -> (Either String a, String) 
    3434}}} 
    35       (This is essentially the internal representation.) 
    36     * choice operator commits to the first successful alternative 
     35      (The internal representation is more general, parameterised on token type.) 
     36    * returns only the first successful alternative, but with internal backtracking, 
     37      and an explicit commit operator to prevent backtracking where necessary 
    3738    * on failure, returns an error string and the unparsed input 
     39    * failure messages can be defined/combined/nested with convenient combinators 
    3840 
    3941 * Could also use something based on Daan's [http://www.cs.uu.nl/people/daan/parsec.html Parsec] combinators