1. 20 Feb, 2003 15 commits
    • simonpj's avatar
      [project @ 2003-02-20 18:27:13 by simonpj] · 8589a690
      simonpj authored
      Document {-# CORE #-} pragma (thanks to Hal Daume)
      8589a690
    • simonpj's avatar
      [project @ 2003-02-20 18:18:55 by simonpj] · 3017b35f
      simonpj authored
      Import pruning
      3017b35f
    • simonpj's avatar
      [project @ 2003-02-20 16:02:57 by simonpj] · e83fa2eb
      simonpj authored
      Add comments
      e83fa2eb
    • simonpj's avatar
      [project @ 2003-02-20 16:01:56 by simonpj] · 3194c528
      simonpj authored
      Comments and imports only
      3194c528
    • simonmar's avatar
      [project @ 2003-02-20 15:39:59 by simonmar] · 51a1c2a2
      simonmar authored
      closureSatisfiesConstraints: check whether the retainer set is valid
      before attempting to match it against a constraint.  It might not be
      valid if the object is an ex-weak-pointer which was finalized after
      the last GC.
      
      MERGE TO STABLE
      51a1c2a2
    • simonpj's avatar
      [project @ 2003-02-20 13:23:47 by simonpj] · 00227c6a
      simonpj authored
      -------------------------------------
      	   Complete an earlier TH commit
      	-------------------------------------
      
      In this earlier commit:
      
        3.  Ensure that a declaration quotation [d| ... |] does not have a
            permanent effect on the instance environment. (A TH fix.)
      
      I had forgotten to do a stage2 compile.  This commit just completes
      the earlier work.  I moved some code from TcExpr (long) to TcSplice
      (shorter) which had the happy effect of bringing related code together.
      00227c6a
    • simonpj's avatar
      [project @ 2003-02-20 13:21:15 by simonpj] · 72c98446
      simonpj authored
      -------------------------------------
         Generate correct dependencies when reading External Core
      	-------------------------------------
      
      We have to be more careful than I realised when doing strongly-connected
      component analysis of type/class decls when reading External Core.
      
      Here's the relevant new comment:
      
      --		Building edges for SCC analysis
      --
      -- When building the edges, we treat the 'main name' of the declaration as the
      -- key for the node, but when dealing with External Core we may come across
      -- references to one of the implicit names for the declaration.  For example:
      --	class Eq a where ....
      --	data :TSig a = :TSig (:TEq a) ....
      -- The first decl is sucked in from an interface file; the second
      -- is in an External Core file, generated from a class decl for Sig.
      -- We have to recognise that the reference to :TEq represents a
      -- dependency on the class Eq declaration, else the SCC stuff won't work right.
      --
      -- This complication can only happen when consuming an External Core file
      --
      -- Solution: keep an "EdgeMap" (bad name) that maps :TEq -> Eq.
      -- Don't worry about data constructors, because we're only building
      -- SCCs for type and class declarations here.  So the tiresome mapping
      -- is need only to map   [class tycon -> class]
      72c98446
    • simonpj's avatar
      [project @ 2003-02-20 13:18:10 by simonpj] · 97958a39
      simonpj authored
      Part 2 of fix :i in InteractiveUI
      97958a39
    • simonpj's avatar
      [project @ 2003-02-20 13:17:02 by simonpj] · f6176af6
      simonpj authored
      Comments only
      f6176af6
    • simonpj's avatar
      [project @ 2003-02-20 13:16:31 by simonpj] · 3251e3ba
      simonpj authored
      Another datacon-naming wibble
      3251e3ba
    • simonpj's avatar
      [project @ 2003-02-20 13:12:40 by simonpj] · b7e64112
      simonpj authored
      Fix :i in InteractiveUI
      b7e64112
    • simonpj's avatar
      [project @ 2003-02-20 13:01:20 by simonpj] · f9853a3e
      simonpj authored
      Eliminate brain-dead outputC pattern-match failure
      f9853a3e
    • simonpj's avatar
      [project @ 2003-02-20 13:00:24 by simonpj] · 5b7c931a
      simonpj authored
      Eliminate bogus string-literal duplication
      5b7c931a
    • simonpj's avatar
      [project @ 2003-02-20 12:59:55 by simonpj] · d5aa9c5d
      simonpj authored
      Compile binary stuff with -O always
      d5aa9c5d
    • simonmar's avatar
      [project @ 2003-02-20 11:45:24 by simonmar] · 710316df
      simonmar authored
      Add -fvia-C to utils/Panic_HC_OPTS, and remove it from main/Main_HC_OPTS.
      710316df
  2. 19 Feb, 2003 6 commits
    • sof's avatar
      [project @ 2003-02-19 16:38:35 by sof] · 1e7f4834
      sof authored
      odir-ify prelude/PrimOp.o dependency
      1e7f4834
    • simonpj's avatar
      [project @ 2003-02-19 16:30:17 by simonpj] · ed6a7f5b
      simonpj authored
      Document phase control
      ed6a7f5b
    • simonpj's avatar
      [project @ 2003-02-19 15:54:05 by simonpj] · 3355c9d5
      simonpj authored
      -------------------------------------
      	 	Two minor wibbles
      	-------------------------------------
      
      
      1.  Make the generic toT/fromT Ids for "generic derived classes" into
          proper ImplicitIds, with their own GlobalIdDetails. This makes it
          easier to identify them.  (The lack of this showed up as a bug
          when I made an apparently-innocuous other change.)
      
      2.  Distinguish ClassOpIds from RecordSelIds in their GlobalIdDetails.
          They are treated differently here and there, so I made this change
          as part of (1)
      
      3.  Ensure that a declaration quotation [d| ... |] does not have a
          permanent effect on the instance environment. (A TH fix.)
      3355c9d5
    • simonpj's avatar
      [project @ 2003-02-19 13:05:45 by simonpj] · f761d6d0
      simonpj authored
      Wibbles to the new datacon story; fixes ds002
      f761d6d0
    • simonmar's avatar
      [project @ 2003-02-19 11:52:42 by simonmar] · d7a583e3
      simonmar authored
      Add note to description of -no-hs-main: it forces linking in --make
      mode too.
      d7a583e3
    • simonmar's avatar
      [project @ 2003-02-19 11:51:35 by simonmar] · 5c9bcb9b
      simonmar authored
      If -no-hs-main is specified in --make mode, attempt linking even when
      there's no Main module.
      
      Fixes bug #686620
      
      MERGE TO STABLE
      5c9bcb9b
  3. 18 Feb, 2003 8 commits
  4. 17 Feb, 2003 6 commits
  5. 14 Feb, 2003 5 commits
    • panne's avatar
      [project @ 2003-02-14 19:21:57 by panne] · 5ee05a2b
      panne authored
      Not sure if this fix is correct, but at least this module compiles
      again...
      5ee05a2b
    • simonpj's avatar
      [project @ 2003-02-14 14:22:24 by simonpj] · 5538aeeb
      simonpj authored
      -------------------------------------
         Do the top-level tcSimpifyTop (to resolve monomorphic constraints)
         once for the whole program, rather than once per splice group
      	-------------------------------------
      
      This change makes the trivial program
      
      	main = return ()
      
      work again.  It had stopped working (emitting an error about Monad m
      being unconstrained) because the 'checkMain' stuff (which knows special
      things about 'main' was happening only *after* all the groups of
      decls in the module had been dealt with and zonked (incl tcSimplifyTop).
      
      Better to postpone.  A little more plumbing, but one fewer unexpected
      happenings.
      5538aeeb
    • simonpj's avatar
      [project @ 2003-02-14 14:19:29 by simonpj] · 580b4fe6
      simonpj authored
      Comments
      580b4fe6
    • simonpj's avatar
      [project @ 2003-02-14 14:19:15 by simonpj] · 9eb59090
      simonpj authored
      A bit more debug info + comments
      9eb59090
    • simonpj's avatar
      [project @ 2003-02-14 14:18:02 by simonpj] · db48bcb9
      simonpj authored
      A bit more about scoped type variables
      db48bcb9