1. 17 Jan, 2002 2 commits
  2. 16 Jan, 2002 1 commit
  3. 15 Jan, 2002 1 commit
  4. 11 Jan, 2002 1 commit
  5. 10 Jan, 2002 3 commits
  6. 09 Jan, 2002 3 commits
    • simonmar's avatar
      [project @ 2002-01-09 12:41:45 by simonmar] · f587e76c
      simonmar authored
      First cut at enhancing the facilities for manipulating the scope in
      GHCi.  The scope now consists of
        1. the full top-level scope of zero or more interpreted modules
        2. the exports from zero or more modules
        3. the temporary bindings
      The sets 1 & 2 are manipulated using an extended :m command: eg :m +A
      will add module A to either set 1 or two depending on whether A is
      interpreted, and :m -A will remove it.  The user interface may change,
      pending feedback from the punters on the mailing list.
      'Prelude' is automatically added to the scope if set 1 is empty and
      set 2 doesn't already contain it.
      We now cache the GlobalRdrEnv for the current scope between
      evaluations in the InteractiveContext, and also the current
      PrintUnqualified setting (which also depends on the scope).
      Cvs: ----------------------------------------------------------------------
    • simonmar's avatar
      [project @ 2002-01-09 10:29:32 by simonmar] · 1c424fdb
      simonmar authored
      Back out previous fix, I've hacked it in a different place which is at
      least closer to the source of the problem.
    • simonmar's avatar
      [project @ 2002-01-09 10:27:41 by simonmar] · fc7496ec
      simonmar authored
      Don't add -package-name if $(PACKAGE) == "rts".  THis is a HACK and we
      need to fix the mess in ghc/rts/Makefile properly.
  7. 08 Jan, 2002 10 commits
  8. 07 Jan, 2002 10 commits
  9. 05 Jan, 2002 1 commit
  10. 04 Jan, 2002 8 commits
    • sof's avatar
      [project @ 2002-01-04 23:21:18 by sof] · 8d62f021
      sof authored
      prel_readdir: tidied
    • simonmar's avatar
      [project @ 2002-01-04 16:02:03 by simonmar] · 6f57245b
      simonmar authored
      Some driver cleanups; in particular -fno-code should work in a more
      reasonable way (it is now a "mode flag" like -C, -c, --make etc.).
    • simonpj's avatar
      [project @ 2002-01-04 11:39:00 by simonpj] · ce26c4b7
      simonpj authored
      	Fix a too-vigorous export bug
      	[this is the Ian Lynagh -O2 bug]
      CoreTidy didn't filter the rules that it exports, so it
      exported some that mentioned Ids on the *left* hand side
      that are not exported.  So an importing module fell over.
      The fix is simple: filter the exposed rules.   On the way
      I tidied up CoreFVs a little.
    • simonpj's avatar
      [project @ 2002-01-04 11:35:47 by simonpj] · 13a428ca
      simonpj authored
      Comments only
    • simonpj's avatar
      [project @ 2002-01-04 11:35:22 by simonpj] · 6346938c
      simonpj authored
      	Be a bit less gung ho about let-floating
      Sometimes it's a bad idea to float cheap expressions
      outwards, even if they escape a value lambda.
      	  -- Even if it escapes a value lambda, we only
      	  -- float if it's not cheap (unless it'll get all the
      	  -- way to the top).  I've seen cases where we
      	  -- float dozens of tiny free expressions, which cost
      	  -- more to allocate than to evaluate.
      	  -- NB: exprIsCheap is also true of bottom expressions, which
      	  --     is good; we don't want to share them
      	  -- It's only Really Bad to float a cheap expression out of a
      	  -- strict context, because that builds a thunk that otherwise
      	  -- would never be built.  So another alternative would be to
      	  -- add
      	  -- 	|| (strict_ctxt && not (exprIsBottom expr))
      	  -- to the condition above. We should really try this out.
      The relevant function is lvlMFE, which has been subject to a lot
      of fiddling over the years.  Probably this isn't the last time.
      This all actually showed up when I was compiling IA.lhs from Ian Lynagh.
    • simonmar's avatar
      [project @ 2002-01-04 11:35:13 by simonmar] · 4d2d47a5
      simonmar authored
      - rename CompManager.cmLoadModule to cmLoadModules and make it take
        a DynFlags argument to be consistent with the rest of the
        CompManager interface.
      - split cmLoadModule into two parts: cmDepAnal which takes a list of
        filenames and returns a ModuleGraph, and cmLoadModules which takes
        the ModuleGraph and does the rest.  This lets the consumer know
        whether the dependency analysis step fails before unloading any
        existing modules - i.e. if you :reload and a module is missing, you
        don't lose the modules that are already loaded (bug reported by
        MIchael Weber some time ago).
    • sof's avatar
      [project @ 2002-01-04 10:56:09 by sof] · 0479b0cf
      sof authored
      getDirectoryContents: use the re-entrant readdir_r() to get at directory
      entries, if available.
    • sof's avatar
      [project @ 2002-01-04 10:54:20 by sof] · 1005a187
      sof authored
      add feature test for readdir_r()