1. 07 Jun, 2002 2 commits
    • matthewc's avatar
      [project @ 2002-06-07 09:40:05 by matthewc] · 400b162b
      matthewc authored
      STG to machine register mapping for IA64.
      400b162b
    • chak's avatar
      [project @ 2002-06-07 07:16:04 by chak] · 2205f0ce
      chak authored
      Fixed handling of infix operators in types:
      - Pretty printing didn't take nested infix operators into account
      - Explicit parenthesis were ignored in the fixity parser:
        * I added a constructor `HsParTy' to `HsType' (in the spirit of `HsPar' in
          `HsExpr'), which tracks the use of explicit parenthesis
        * Occurences of `HsParTy' in type-ish things that are not quite types (like
          context predicates) are removed in `ParseUtils'; all other occurences of
          `HsParTy' are removed during type checking (just as it works with `HsPar')
      2205f0ce
  2. 06 Jun, 2002 1 commit
  3. 05 Jun, 2002 4 commits
    • simonpj's avatar
      [project @ 2002-06-05 14:39:27 by simonpj] · b2f644fa
      simonpj authored
      ---------------------------------------
      	Add rebindable syntax for do-notation
      		(this time, on the HEAD)
      	---------------------------------------
      
      Make do-notation use rebindable syntax, so that -fno-implicit-prelude
      makes do-notation use whatever (>>=), (>>), return, fail are in scope,
      rather than the Prelude versions.
      
      On the way, combine HsDo and HsDoOut into one constructor in HsSyn,
      and tidy up type checking of HsDo.
      b2f644fa
    • 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
  4. 04 Jun, 2002 6 commits
  5. 03 Jun, 2002 5 commits
  6. 31 May, 2002 1 commit
  7. 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
  8. 28 May, 2002 3 commits
  9. 27 May, 2002 6 commits
  10. 24 May, 2002 1 commit
  11. 23 May, 2002 3 commits
  12. 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