1. 05 Jun, 2002 3 commits
    • simonpj's avatar
      [project @ 2002-06-05 14:08:23 by simonpj] · 2145e55a
      simonpj authored
      ------------------------------------------------
      	Fix the (new) lexer, and make the derived read
      	and show code work according to the new H98 report
      	------------------------------------------------
      
      
      The new lexer, based on Koen's cunning parser (Text.ParserCombinators.ReadP)
      wasn't quite right.  It's all very cool now.
      
      In particular:
      
      * The H98 "lex" function should return the exact string parsed, and it
      now does, aided by the new combinator ReadP.gather.
      
      * As a result the Text.Read.Lex Lexeme type is much simpler than before
          data Lexeme
            = Char   Char	-- Quotes removed,
            | String String	-- 	escapes interpreted
            | Punc   String 	-- Punctuation, eg "(", "::"
            | Ident  String	-- Haskell identifiers, e.g. foo, baz
            | Symbol String	-- Haskell symbols, e.g. >>, %
            | Int Integer
            | Rat Rational
            | EOF
           deriving (Eq,Show)
      
      * Multi-character punctuation, like "::" was getting lexed as a Symbol,
      but it should be a Punc.
      
      * Parsing numbers wasn't quite right.  "1..n" got it confused because it
      got committed to a decimal point and then found a second '.'.
      
      
      * The new H98 spec for Show is there, which ignores associativity.
      2145e55a
    • simonpj's avatar
      [project @ 2002-06-05 14:07:47 by simonpj] · 84e376bc
      simonpj authored
      Add comment
      84e376bc
    • simonpj's avatar
      [project @ 2002-06-05 13:30:52 by simonpj] · 0c66d79b
      simonpj authored
      Documentation for rebindable do-notation
      0c66d79b
  2. 04 Jun, 2002 6 commits
  3. 03 Jun, 2002 5 commits
  4. 31 May, 2002 1 commit
  5. 29 May, 2002 6 commits
    • sof's avatar
      [project @ 2002-05-29 22:39:39 by sof] · ea9c5577
      sof authored
      - nuke ghc_{501,502}_at_least defns, no longer used.
      - mingw/cygwin cross-compilation tweak.
      ea9c5577
    • sof's avatar
      [project @ 2002-05-29 22:32:49 by sof] · 5062fac4
      sof authored
      Use HOSTPLATFORM / *_HOST_OS to examine properties of the environment/compiler
      we're using.
      5062fac4
    • sof's avatar
      [project @ 2002-05-29 22:11:58 by sof] · 712f906d
      sof authored
      Use HOSTPLATFORM / *_HOST_OS (instead of TARGET equivalents), as we're
      dealing with host-specific properties, not that of the target.
      712f906d
    • simonmar's avatar
      [project @ 2002-05-29 13:44:18 by simonmar] · 1f1287d7
      simonmar authored
      gcc 3.1 broke the mangler again...  this time it seems gcc is adding
      spurious writes to the stack in the prologue, triggered perhaps by
      inline functions.  The code generated for uses of ASSIGN_DBL() and
      ASSIGN_INT64() is really terrible - we should really submit a bug
      report to the gcc folks for this one.
      
      Anyway, this patch should get us going again; we now toss the spurious
      instructions back into the main part of the code (just in case they
      happened to be there for a good reason).
      1f1287d7
    • simonpj's avatar
      [project @ 2002-05-29 13:09:24 by simonpj] · 52671283
      simonpj authored
      Wibble to previous commit on negative literals in patterns (fixes crash in GHC/Real.lhs)
      52671283
    • simonpj's avatar
      [project @ 2002-05-29 13:06:02 by simonpj] · b9394d5f
      simonpj authored
      Document GHC-mingw vs GHC-cygwin
      b9394d5f
  6. 28 May, 2002 3 commits
  7. 27 May, 2002 6 commits
  8. 24 May, 2002 1 commit
  9. 23 May, 2002 3 commits
  10. 22 May, 2002 2 commits
    • sof's avatar
      [project @ 2002-05-22 18:36:19 by sof] · 7a6b4575
      sof authored
      HC_SPLIT_POST: reduce the risk of exceeding command line length limits.
      
      [As was, constructing the relocatable ".o"s from split object files
      failed with stuff inside of libraries/haskell-src/Language/Haskell/
      under cygwin(&bash).]
      7a6b4575
    • simonmar's avatar
      [project @ 2002-05-22 09:02:40 by simonmar] · b719831c
      simonmar authored
      We don't pass --old-ghc to Happy any more.  Also, wire $(HappyOpts) to
      -agc in config.mk rather than passing it through from configure, since
      it was always the same anyhow.
      b719831c
  11. 21 May, 2002 2 commits
  12. 18 May, 2002 1 commit
  13. 17 May, 2002 1 commit