1. 31 Oct, 2001 8 commits
    • simonpj's avatar
      [project @ 2001-10-31 15:22:53 by simonpj] · 61bfd5dd
      simonpj authored
      	Improved handling of scoped type variables
      The main effect of this commit is to allow scoped type variables
      in pattern bindings, thus
      	(x::a, y::b) = e
      This was illegal, but now it's ok.  a and b have the same scope
      as x and y.
      On the way I beefed up the info inside a type variable
      (TcType.TyVarDetails; c.f. IdInfo.GlobalIdDetails) which
      helps to improve error messages. Hence the wide ranging changes.
      Pity about the extra loop from Var to TcType, but can't be helped.
    • simonpj's avatar
      [project @ 2001-10-31 14:52:08 by simonpj] · c01030fe
      simonpj authored
      1. Correct the handling of selectors for
         newtypes with polymorphic fields
      2. Make certain that trivial constructor wrappers get inlined
    • simonmar's avatar
      [project @ 2001-10-31 14:38:00 by simonmar] · bfefff2c
      simonmar authored
      Add missing MUT_CONS case (reported by Andy Cheadle)
    • simonmar's avatar
      [project @ 2001-10-31 12:51:08 by simonmar] · c1b902cf
      simonmar authored
      Load the files given on the command line a bit later, and catch any
      exceptions so that errors while loading these files don't cause GHCi
      to exit completely.
    • simonmar's avatar
      [project @ 2001-10-31 12:26:17 by simonmar] · a20d426b
      simonmar authored
      Handle completely empty files without crashing in slurpFileExpandTabs.
    • rrt's avatar
      [project @ 2001-10-31 11:37:14 by rrt] · 89f67336
      rrt authored
      The new story where InstallShield just crawls over a make install tree,
      rather than having to specify the directory layout by hand. Some tweaks to
      the way that external programs are installed, so that they too can be just
      crawled over.
    • simonmar's avatar
      [project @ 2001-10-31 10:34:29 by simonmar] · 760f104f
      simonmar authored
      Fix a problem when a Haskell process is suspended/resumed using shell
      job control in Unix.  The shell tends to put stdin back into blocking
      mode before resuming the process, so we have to catch SIGCONT and put
      it back into O_NONBLOCK.
        - fix a bug in the scheduler: reverse the order of the check
          for pending signals and the call to awaitEvent to block on I/O.
        - do a style sweep in Signals.c
    • simonmar's avatar
      [project @ 2001-10-31 10:30:29 by simonmar] · ab01dd37
      simonmar authored
      Add setNonBlockingFd(), for use in the SIGCONT handler in Signals.c.
  2. 30 Oct, 2001 9 commits
  3. 29 Oct, 2001 7 commits
  4. 27 Oct, 2001 2 commits
  5. 26 Oct, 2001 7 commits
    • sewardj's avatar
      [project @ 2001-10-26 11:59:36 by sewardj] · d6af23ab
      sewardj authored
      merge from stable, revs:
       +4 -1      fptools/ghc/compiler/nativeGen/AbsCStixGen.lhs  +10 -0     fptools/ghc/driver/mangler/ghc-asm.lprl
        Place a zero word after each reversed vector table, so that the vtbl
        label is really in the section we would like to claim it is in.  This
        is needed for the GC to work correctly.  Fixes a GHCi segfault
        reported by Ryszard Kubiak.
       +7 -0      fptools/ghc/compiler/nativeGen/AbsCStixGen.lhs  +18 -0     fptools/ghc/driver/mangler/ghc-asm.lprl
        Add comments, much longer than the fix itself, giving explaination
        for yesterday's dummy-word-after-vtbl fix.
    • sewardj's avatar
      [project @ 2001-10-26 11:53:34 by sewardj] · 9551c28b
      sewardj authored
      merge from stable, revs:
       +12 -11    fptools/ghc/compiler/nativeGen/MachCode.lhs  +23 -0     fptools/ghc/compiler/nativeGen/Stix.lhs  +2 -5      fptools/ghc/compiler/nativeGen/StixPrim.lhs
        Route all NCG panics to do with missing primop implementations and any
        other panic which could be caused by compiling legitimate sources
        through the function Stix.ncgPrimopMoan.  This emits a helpful message
        explaining what has happened, advises the use of -fvia-C as a
        workaround, and says please mail us.
    • sewardj's avatar
      [project @ 2001-10-26 11:49:19 by sewardj] · 80ca788a
      sewardj authored
      merge from stable, rev
        Win32 only: implement sane failure semantics + message when out of
        memory, rather than continuing and allowing the rest of the system
        to seg out.  Also, increase the 128M limit to 256M.
        This allegedly fixes the Antony Courtney Win32 segfault.
    • sewardj's avatar
      [project @ 2001-10-26 11:33:13 by sewardj] · 3eb89949
      sewardj authored
      merge from stable, rev
        Implement a debugging aid: look in GHCi's object symbol tables for
        symbols within DELTA bytes of the specified address, and show their
        names.  Only compiled with -DDEBUG.  The new fn is called ghci_enquire
        and you can call it from within a gdb session.
    • sof's avatar
      [project @ 2001-10-26 05:31:05 by sof] · c2867d09
      sof authored
      pipeLoop: Handle pipelines that end with ineffective
      final stages (e.g., CPP and/or PP) correctly. i.e.,
      need to copy the outcome of the pipeline into the
      expected output file, since the final stage didn't.
    • sof's avatar
      [project @ 2001-10-26 00:53:56 by sof] · 40f19c21
      sof authored
      Custom pre-processor documentation
    • sof's avatar
      [project @ 2001-10-26 00:53:27 by sof] · 11447047
      sof authored
      Added support for a custom pre-processor pass:
        ghc -F -pgmF/path/to/a/pre/processor ...
      will now run /path/to/a/pre/processor over Haskell
      input sources. It is positioned in the compilation
      pipeline just before the compiler proper, but after
      unlit'ing and CPP'ing. The pre-processor is passed
      the following command-line when invoked:
         /path/to/a/pre/processor orig_input_source_file_path
      			    <other options>
      Additionally options can be fed directly to the
      pre-processor via -optF<option> options.
      The -F option causes the pre-processor to run _iff_ one
      has been specified via -pgmF (there's some redundancy
      here, but I went for this cmd-line interface as it's
      consistent with the general -pgm<Foo> story).
       * hooking in a pre-processor is occasionally useful;
         e.g., cheap&cheerful way to integrate language
         extensions with GHC, compile-time syntax/style
         checking etc.
       * Artfully re-using the CPP phase (by specifying your
         own via -pgmP) doesn't really work as the driver
         really assumes that GNU cpp is what's being invoked
         (and path mangling is also performed on Win32 platforms).
         Additionally, there are cases when you want to be
         able to run CPP _and_ a pre-processor.
       * The alternative of running the pre-processor as a
         separate program in a Makefile (say) doesn't work
         in interpreted mode, and this approach also forces
         you to give up on recompilation checking when in
         batch mode.
  6. 25 Oct, 2001 7 commits
    • rrt's avatar
      [project @ 2001-10-25 14:50:00 by rrt] · 32e87ecf
      rrt authored
      Tidy up after my assumption-busting.
    • rrt's avatar
      [project @ 2001-10-25 14:48:26 by rrt] · f8ee962e
      rrt authored
      Why should pdfjadetex be in the same directory as Jade? Make the much
      less silly assumption that it's on the PATH.
    • simonpj's avatar
      [project @ 2001-10-25 14:30:43 by simonpj] · d5f94cc1
      simonpj authored
        Correct an error in the handling of implicit parameters
      Mark Shields discovered a bug in the way that implicit parameters
      are dealt with by the type checker.  It's all a bit subtle, and
      is extensively documented in TcSimplify.lhs.
      This commit makes the code both simpler and more correct.  It subtly
      changes the way in which type signatures are treated, but not in a way
      anyone would notice: see notes with "Question 2: type signatures"
      in TcSimplify.lhs.
    • rrt's avatar
      [project @ 2001-10-25 12:56:54 by rrt] · 57bbc2a3
      rrt authored
      Renumber tuples (decrement by one) to conform to new primop naming scheme.
    • rrt's avatar
      [project @ 2001-10-25 12:55:18 by rrt] · 3d430150
      rrt authored
      ILX fixes to get the standard library to build and verify.
    • simonmar's avatar
      [project @ 2001-10-25 11:47:03 by simonmar] · f01a5399
      simonmar authored
      -Wall cleanup:
        - move some imports inside #ifdef GHCI
        - remove some unused bindings
    • simonmar's avatar
      [project @ 2001-10-25 11:37:49 by simonmar] · 9ab998b3
      simonmar authored
      - only generate split markers if we're splitting
      - remove a couple of unused imports