1. 14 Jun, 2001 3 commits
    • simonpj's avatar
      [project @ 2001-06-14 12:50:05 by simonpj] · 16d5d1c7
      simonpj authored
      ----------------------
      	Installation packaging
      	----------------------
      
      GHC runs various system programs like
      	cp, touch
      	gcc, as, ld etc
      
      On Windows we plan to deliver these programs along with GHC,
      so we have to be careful about where to find them.
      
      This commit isolates all these dependencies in a single module
      
      	main/SysTools.lhs
      
      Most of the #ifdefery for mingw has moved into this module.
      There's some documentation in SysTools.lhs
      
      Along the way I did lots of other cleanups.  In particular
      
        * There is no more 'globbing' needed when calling runSomething
        * All file removal goes via the standard Directory.removeFile
        * TmpFiles.hs has gone; absorbed into SysTools
        * Some DynFlag stuff has moved from DriverFlags to CmdLineOpts
      
      
      Still to do:
      
        **	I'm a bit concerned that calling removeFile one at a time
      	when deleting masses of split-object files is going to be
      	rather slow
      
        **	GHC now expects to find split,mangle,unlit in
      		libdir/extra-bin
      	instead of just
      		libdir
      
      	So something needs to change in the Unix installation scripts
      
        **    The "ineffective C preprocessor" is a perversion and should die
      16d5d1c7
    • simonmar's avatar
      [project @ 2001-06-14 11:46:55 by simonmar] · 8245241e
      simonmar authored
      just move some code around.
      8245241e
    • simonmar's avatar
      [project @ 2001-06-14 09:47:37 by simonmar] · a30fbb32
      simonmar authored
      comment fixes
      a30fbb32
  2. 13 Jun, 2001 7 commits
  3. 12 Jun, 2001 6 commits
    • rrt's avatar
      [project @ 2001-06-12 17:19:34 by rrt] · a1948ea1
      rrt authored
      Reimplement system() properly on Windows. This avoids two problems with
      Windows system(): first, the maximum command-line length, and secondly, the
      fact that system() returns before the command has completed, and sleep() was
      used to hack around this.
      
      This doesn't affect the use of kludgedSystem, which needs to be removed for
      GHC not to need a shell at all.
      a1948ea1
    • simonmar's avatar
      [project @ 2001-06-12 17:09:33 by simonmar] · a0613af5
      simonmar authored
      good riddance
      a0613af5
    • simonmar's avatar
      [project @ 2001-06-12 17:08:11 by simonmar] · 80f3c95c
      simonmar authored
      Don't install the pkgconf binary in a BIN_DIST any more.
      80f3c95c
    • simonmar's avatar
      [project @ 2001-06-12 17:07:23 by simonmar] · a3af4376
      simonmar authored
      Allow paths in package.conf to begin with the string "$libdir" which
      is magically replaced by the compiler with either
      
        (a) the argument to the -B<dir> option, if one is present, or
        (b) the wired-in libdir otherwise.
      
      This means that the standard package.conf file is independent of the
      install location and we don't need the post-install-script hack any
      more (Julian - could you update the install machinery when the time
      comes? thanks.)
      a3af4376
    • simonpj's avatar
      [project @ 2001-06-12 12:02:48 by simonpj] · 62b8d1aa
      simonpj authored
      Make CoreTidy clone all top-level names
      62b8d1aa
    • simonpj's avatar
      [project @ 2001-06-12 11:15:45 by simonpj] · fd4febd3
      simonpj authored
      wibble
      fd4febd3
  4. 11 Jun, 2001 8 commits
    • sewardj's avatar
      [project @ 2001-06-11 16:49:23 by sewardj] · 8fa55882
      sewardj authored
      Ensure the boilerplate rule still applies for building HSstd_cbits.o.
      8fa55882
    • simonpj's avatar
      [project @ 2001-06-11 14:15:32 by simonpj] · 14ce3bb4
      simonpj authored
      document data types with no constructors
      14ce3bb4
    • simonpj's avatar
      [project @ 2001-06-11 13:39:16 by simonpj] · 1c4e5ade
      simonpj authored
      Changes to build HSstd1.o and HSstd2.o for GHCi in lib/std
      1c4e5ade
    • dsyme's avatar
      [project @ 2001-06-11 13:31:49 by dsyme] · 2fcb7497
      dsyme authored
      Modifications for GHC.NET (the ILX backend)
      2fcb7497
    • dsyme's avatar
      [project @ 2001-06-11 13:15:10 by dsyme] · 82da3e51
      dsyme authored
      Modifications to lib/std/Makefile for GHC.NET (ILX backend)
      82da3e51
    • simonpj's avatar
      [project @ 2001-06-11 12:24:51 by simonpj] · 2c6d73e2
      simonpj authored
      --------------------------------------
      	Tidy up and improve "pattern contexts"
      	--------------------------------------
      
      In various places (renamer, typechecker, desugarer) we need to know
      what the context of a pattern match is (case expression, function defn,
      let binding, etc).  This commit tidies up the story quite a bit.  I
      think it represents a net decrease in code, and certainly it improves the
      error messages from:
      
      	f x x = 3
      
      Prevsiously we got a message like "Conflicting bindings for x in a pattern match",
      but not it says "..in a defn of function f".
      
      WARNING: the tidy up had a more global effect than I originally expected,
      so it's possible that some other error messages look a bit peculiar.  They
      should be easy to fix, but tell us!
      2c6d73e2
    • simonpj's avatar
      [project @ 2001-06-11 12:21:17 by simonpj] · 0004357c
      simonpj authored
      --------------------------
      	Allow data type declarations
      	to have zero constructors
      	--------------------------
      
      This allows
      
      	data T a
      
      as a data type declaration; i.e. allows zero constructors.
      If there is an '=' sign there must be at least one constructor.
      
      
      * Parser.y: parse the declaration
      * HsDecls: print out the data type declaration right
      * TyCon: don't ASSERT that the constructors are non-empty
      0004357c
    • malcolm's avatar
      [project @ 2001-06-11 08:58:21 by malcolm] · 0a5856f3
      malcolm authored
      Mention __NHC__ alongside __HUGS__ and __HBC__ in the description
      of the cpp symbol __GLASGOW_HASKELL__.
      0a5856f3
  5. 09 Jun, 2001 1 commit
  6. 08 Jun, 2001 2 commits
  7. 07 Jun, 2001 6 commits
    • sewardj's avatar
      [project @ 2001-06-07 16:00:18 by sewardj] · 8ec05915
      sewardj authored
      Allow underscores in module names presented to the :module command.
      8ec05915
    • simonmar's avatar
      [project @ 2001-06-07 14:15:22 by simonmar] · dea3256b
      simonmar authored
      Don't force a module's {-# SOURCE #-} imports to have object linkables
      in order for the current module's object linkable to be considered
      valid (fixes some unnecessary recompilation with recursive modules).
      dea3256b
    • sewardj's avatar
      [project @ 2001-06-07 11:07:51 by sewardj] · 06ffd264
      sewardj authored
      Fix Unix world breakage.
      06ffd264
    • simonmar's avatar
      [project @ 2001-06-07 11:03:07 by simonmar] · c95b8662
      simonmar authored
      First part of support for hierarchical module names:
      
         - the Finder now searches all possible paths when looking for
           a source file or .hi file.  I've removed the caching because
           now we have to search in subdirectories of each path option,
           and it was dubious whether the cache was actually helping.
      
         - the compilation manager now outputs a warning if it can't find
           the source for a given module, only the .hi file.  Previously
           this caused a cryptic error message when we attempted to call
           getModificationTime on the non-existent source file.
      c95b8662
    • sewardj's avatar
      [project @ 2001-06-07 10:45:30 by sewardj] · beedb87b
      sewardj authored
      Track current changes in the text-mode-seek-on-Windows saga.
      beedb87b
    • sewardj's avatar
      [project @ 2001-06-07 10:44:47 by sewardj] · f819f0f4
      sewardj authored
      Try to improve matters in the text-mode-seek swamp.  Only disallow
      text-mode-seeks on Win32, rather than on all platforms.  That means
      that seeks in text mode on Unix platforms should work as originally
      (which was the correct H98 behaviour), whilst Win32 generates
      exceptions if you do seeks in text mode.
      f819f0f4
  8. 06 Jun, 2001 7 commits