1. 06 Jun, 2005 1 commit
  2. 03 Jun, 2005 4 commits
  3. 02 Jun, 2005 2 commits
  4. 01 Jun, 2005 1 commit
  5. 31 May, 2005 4 commits
    • simonmar's avatar
      [project @ 2005-05-31 14:14:26 by simonmar] · ae658c18
      simonmar authored
      Make more error messages from the downsweep into ErrMsg exceptions.
      ae658c18
    • simonmar's avatar
      [project @ 2005-05-31 13:10:39 by simonmar] · 31f289ba
      simonmar authored
      oops, fix updating the module graph
      31f289ba
    • simonmar's avatar
      [project @ 2005-05-31 12:45:03 by simonmar] · aa6eb36c
      simonmar authored
      Fix some reporting of errors in the GHC API: errors during the
      downsweep were thrown as exceptions; now they're reported via the
      (Messages->IO ()) callback in the same way as other errors.
      
      getModuleInfo no longer prints anything on stdout.  It does ignore
      error messages and return Nothing, however - we should fix this and
      return the error messages at some point.
      
      The ErrMsg type can now be thrown as an exception.  This can be a
      convenient alternative if collecting multiple error messages isn't
      required.  We do this in the downsweep now.
      aa6eb36c
    • simonmar's avatar
      [project @ 2005-05-31 09:11:27 by simonmar] · 004ed82c
      simonmar authored
      Fix the names of a few fields.
      004ed82c
  6. 27 May, 2005 1 commit
  7. 26 May, 2005 1 commit
    • simonpj's avatar
      [project @ 2005-05-26 21:37:13 by simonpj] · 6a18febc
      simonpj authored
      MERGE TO STABLE
      
      Put back in a missing case for higher-rank types. When the
      definition is
      	a) non-recursive
      	b) a function binding
      	c) lacks a type signature
      we want to *infer* a perhaps-higher-rank type for the RHS,
      before making a monomorphically-typed Id for the LHS.
      
      E.g. 	f = \(x :: forall a. a->a) -> (x True, x 'c')
      
      This case got lost in the transition to 6.4
      
      tc194 tests it
      6a18febc
  8. 25 May, 2005 4 commits
  9. 24 May, 2005 8 commits
  10. 23 May, 2005 11 commits
    • simonmar's avatar
      [project @ 2005-05-23 15:44:10 by simonmar] · 6d16c476
      simonmar authored
      Simplify and improve the Capability-passing machinery for bound
      threads.
      
      The old story was quite complicated: if you find a thread on the run
      queue which the current task can't run, you had to call
      passCapability(), which set a flag saying where the next Capability
      was to go, and then release the Capability.  When multiple
      Capabilities are flying around, it's not clear how this story should
      extend.
      
      The new story is much simpler: each time around the scheduler loop,
      the task looks to see whether it can make any progress, and if not, it
      releases its Capability and wakes up a task which *can* make some
      progress.  The predicate for whether we can make any progress is
      encapsulated in the (inline) function ANY_WORK_FOR_ME(Condition).
      Waking up an appropriate task is encapsulated in the function
      threadRunnable() (previously it was in two places).
      
      The logic in Capability.c is simpler, but unfortunately it is now more
      closely connected with the Scheduler, because it inspects the run
      queue.  However, performance when communicating between bound and
      unbound threads might be better.
      
      The concurrency tests still work, so hopefully this hasn't broken
      anything.
      6d16c476
    • simonpj's avatar
      [project @ 2005-05-23 14:49:59 by simonpj] · 58fa3624
      simonpj authored
      Print only the result of a bind stmt
      58fa3624
    • simonmar's avatar
      [project @ 2005-05-23 13:39:55 by simonmar] · 58150db0
      simonmar authored
      - scheduleDetectDeadlock() should invoke GarbageCollect() via
        scheduleDoGC(), which collects the Capabilities first.
      
      - scheduleDoGC() doesn't need the Capability.  Also, it appears that
        there was an out-of-bounds array access in here.
      
      - add printThreadQueue(), useful from gdb.
      
      - fix a couple of warnings.
      58150db0
    • simonpj's avatar
      [project @ 2005-05-23 13:00:46 by simonpj] · 7fe37ed4
      simonpj authored
      rename exportsFromAvail
      7fe37ed4
    • simonpj's avatar
      [project @ 2005-05-23 13:00:30 by simonpj] · 6b4e2574
      simonpj authored
      Further GHCi wibbles
      
      a) Don't print the value of a 'let'
      b) Only one error message for 'print id'
      6b4e2574
    • simonpj's avatar
      [project @ 2005-05-23 10:17:45 by simonpj] · added151
      simonpj authored
      Dead code (HEAD only)
      added151
    • simonpj's avatar
      [project @ 2005-05-23 10:17:22 by simonpj] · 6d4df3a3
      simonpj authored
      Fix what "standard class" means
      
      	MERGE to STABLE
      
      The Report's definition of defaulting (Section 4.3.4) defines a "standard class" to be
      one defined by the Prelude or a standard library.  GHC was omitting the "..or a standard
      library" part; and it even omitted the Prelude classes Monad and Functor.
      This commit fixes the bug by adding
      
      	Random, RandomGen,
      	Monad, MonadPlus, Functor
      
      to the classes defined as "standard".
      6d4df3a3
    • simonpj's avatar
      [project @ 2005-05-23 09:56:17 by simonpj] · 487920aa
      simonpj authored
      Comments and type sig only
      487920aa
    • simonpj's avatar
      [project @ 2005-05-23 09:56:03 by simonpj] · e164999e
      simonpj authored
      Track new semantics of splitLongestPrefix; fixes -main-is bug
      e164999e
    • simonpj's avatar
      [project @ 2005-05-23 09:50:26 by simonpj] · 9af07e05
      simonpj authored
      Clarify code for splitLongestPrefix; no effect on behaviour
      9af07e05
    • simonmar's avatar
      [project @ 2005-05-23 08:22:06 by simonmar] · 4c03d4ee
      simonmar authored
      needsCDecl: remove extra equation for CaseLabel, which was overlapped
      (and wrong!).
      4c03d4ee
  11. 21 May, 2005 3 commits
    • panne's avatar
      [project @ 2005-05-21 16:09:18 by panne] · 178c1421
      panne authored
      Warning police (format strings, unused variables)
      178c1421
    • panne's avatar
      [project @ 2005-05-21 15:39:00 by panne] · faa8d785
      panne authored
      Warning police: Removed overlapped patterns. In general, taking
      compiler warnings about unmatched patterns seriously when they come up
      later might be better than writing catch-all patterns right from the
      start. Otherwise readers are confused and wonder which patterns might
      be missing when there are none.
      faa8d785
    • panne's avatar
      [project @ 2005-05-21 15:20:43 by panne] · 78b06ae3
      panne authored
      Warning police: Removed an overlapped catch-all pattern (which could
      really never match due to genprimopcode)
      78b06ae3