1. 04 Apr, 2005 3 commits
    • simonpj's avatar
      [project @ 2005-04-04 11:55:11 by simonpj] · d551dbfe
      simonpj authored
      This commit combines three overlapping things:
      1.  Make rebindable syntax work for do-notation. The idea
          here is that, in particular, (>>=) can have a type that
          has class constraints on its argument types, e.g.
             (>>=) :: (Foo m, Baz a) => m a -> (a -> m b) -> m b
          The consequence is that a BindStmt and ExprStmt must have
          individual evidence attached -- previously it was one
          batch of evidence for the entire Do
          Sadly, we can't do this for MDo, because we use bind at
          a polymorphic type (to tie the knot), so we still use one
          blob of evidence (now in the HsStmtContext) for MDo.
          For arrow syntax, the evidence is in the HsCmd.
          For list comprehensions, it's all built-in anyway.
          So the evidence on a BindStmt is only used for ordinary
      2.  Tidy up HsSyn.  In particular:
      	- Eliminate a few "Out" forms, which we can manage
      	without (e.g. 
      	- It ought to be the case that the type checker only
      	decorates the syntax tree, but doesn't change one
      	construct into another.  That wasn't true for NPat,
      	LitPat, NPlusKPat, so I've fixed that.
      	- Eliminate ResultStmts from Stmt.  They always had
      	to be the last Stmt, which led to awkward pattern
      	matching in some places; and the benefits didn't seem
      	to outweigh the costs.  Now each construct that uses
      	[Stmt] has a result expression too (e.g. GRHS).
      3.  Make 'deriving( Ix )' generate a binding for unsafeIndex,
          rather than for index.  This is loads more efficient.
          (This item only affects TcGenDeriv, but some of point (2)
          also affects TcGenDeriv, so it has to be in one commit.)
    • simonmar's avatar
      [project @ 2005-04-04 10:55:38 by simonmar] · cb486104
      simonmar authored
      comment out parts of the Win32 DLLs section, specifically those that
      don't apply to current Windows distributions.
    • simonmar's avatar
      [project @ 2005-04-04 10:39:23 by simonmar] · de90a39d
      simonmar authored
      Give prototypes for getAllocations and revertCAFs.
  2. 03 Apr, 2005 4 commits
  3. 02 Apr, 2005 1 commit
  4. 01 Apr, 2005 3 commits
    • simonmar's avatar
      [project @ 2005-04-01 12:15:15 by simonmar] · 97e69a51
      simonmar authored
      enable x86_64 native codegen
    • simonmar's avatar
      [project @ 2005-04-01 12:14:29 by simonmar] · 6c554010
      simonmar authored
      First cut at the x86_64 native code generator.  Lots of code is shared
      with i386, but floating point uses SSE2.
      This more or less works, the things I know that don't work are:
        - the floating-point primitives (sin, cos etc.) are missing
        - floating-point comparisons involving NaN are wrong
        - there's no PIC support yet
      Also, I have a long list of small things to fix up to improve
      I think the small memory model is assumed, for now.
    • simonmar's avatar
      [project @ 2005-04-01 11:34:20 by simonmar] · 79c03a2f
      simonmar authored
      build fix when !GHCI
  5. 31 Mar, 2005 9 commits
  6. 30 Mar, 2005 11 commits
  7. 29 Mar, 2005 2 commits
  8. 28 Mar, 2005 1 commit
  9. 27 Mar, 2005 1 commit
    • panne's avatar
      [project @ 2005-03-27 13:41:13 by panne] · 03dc2dd3
      panne authored
      * Some preprocessors don't like the C99/C++ '//' comments after a
        directive, so use '/* */' instead. For consistency, a lot of '//' in
        the include files were converted, too.
      * UnDOSified libraries/base/cbits/runProcess.c.
      * My favourite sport: Killed $Id$s.
  10. 24 Mar, 2005 5 commits
    • sof's avatar
      [project @ 2005-03-24 18:44:16 by sof] · c0cca2ea
      sof authored
      SRC_HC_OPTS: only add -ignore-package if supported by underlying GHC.
                   (reqd to be able to compile greencard/lib, hdirect/(com)lib with
      	     non-cutting edge GHCen.)
      Merge to STABLE.
    • simonmar's avatar
      [project @ 2005-03-24 16:14:00 by simonmar] · 19519dc3
      simonmar authored
      Cleanup the upsweep strategy in GHC.load.
      Now it's hopefully clearer how we decide what modules to recompile,
      and which are "stable" (not even looked at) during a reload.  See the
      comments for details.
      Also, I've taken some trouble to explicitly prune out things that
      aren't required before a reload, which should reduce the memory
      requirements for :reload in GHCi.  Currently I believe it keeps most
      of the old program until the reload is complete, now it shouldn't
      require any extra memory.
    • simonmar's avatar
      [project @ 2005-03-24 15:22:33 by simonmar] · acc0fe48
      simonmar authored
      tweaks to a (commented-out) trace message
    • simonmar's avatar
      [project @ 2005-03-24 15:11:07 by simonmar] · d46ae075
      simonmar authored
      mkStgAltType: try to find the non-abstract TyCon if the one in the
      type of the case binder turns out to be an HiBootTyCon.  Fixes
      possible code generation bugs when compiling programs with recursive
    • simonmar's avatar
      [project @ 2005-03-24 10:02:36 by simonmar] · b6b182f3
      simonmar authored
      Don't build GHC in all of GhcLibWays, like we do for other libraries