1. 21 Mar, 2005 1 commit
    • simonmar's avatar
      [project @ 2005-03-21 10:50:22 by simonmar] · 50159f6c
      simonmar authored
      Complete the transition of -split-objs into a dynamic flag (looks like I
      half-finished it in the last commit).
      
      Also: complete the transition of -tmpdir into a dynamic flag, which
      involves some rearrangement of code from SysTools into DynFlags.
      
      Someday, initSysTools should move wholesale into initDynFlags, because
      most of the state that it initialises is now part of the DynFlags
      structure, and the rest could be moved in easily.
      50159f6c
  2. 19 Mar, 2005 1 commit
    • sof's avatar
      [project @ 2005-03-19 02:03:26 by sof] · cbe4c3a7
      sof authored
      [Windows only]
      for System.Directory / Compat.Directory functionality that probes the OS
      for local details re: misc user directories, perform late binding of
      SHGetFolderPath() from shell32.dll, as it may not be present.
      (cf. ghc-6.4's failure to operate on Win9x / NT boxes.) If the API isn't
      there, fail with UnsupportedOperation.
      Packages.readPackageConfigs: gracefully handle excns from getAppUserDataDirectory.
      
      Merge to STABLE.
      cbe4c3a7
  3. 18 Mar, 2005 7 commits
    • simonpj's avatar
      [project @ 2005-03-18 17:17:02 by simonpj] · c0eed017
      simonpj authored
      Import wibble
      c0eed017
    • simonpj's avatar
      [project @ 2005-03-18 17:16:00 by simonpj] · d5b3e9b5
      simonpj authored
      Fix stage-2 build
      d5b3e9b5
    • simonmar's avatar
      [project @ 2005-03-18 13:53:34 by simonmar] · 9b73f1ba
      simonmar authored
      Undo rev. 1.6, these changes shouldn't have been in this tree
      9b73f1ba
    • simonmar's avatar
      [project @ 2005-03-18 13:37:27 by simonmar] · d1c1b7d0
      simonmar authored
      Flags cleanup.
      
      Basically the purpose of this commit is to move more of the compiler's
      global state into DynFlags, which is moving in the direction we need
      to go for the GHC API which can have multiple active sessions
      supported by a single GHC instance.
      
      Before:
      
      $ grep 'global_var' */*hs | wc -l
           78
      
      After:
      
      $ grep 'global_var' */*hs | wc -l
           27
      
      Well, it's an improvement.  Most of what's left won't really affect
      our ability to host multiple sessions.
      
      Lots of static flags have become dynamic flags (yay!).  Notably lots
      of flags that we used to think of as "driver" flags, like -I and -L,
      are now dynamic.  The most notable static flags left behind are the
      "way" flags, eg. -prof.  It would be nice to fix this, but it isn't
      urgent.
      
      On the way, lots of cleanup has happened.  Everything related to
      static and dynamic flags lives in StaticFlags and DynFlags
      respectively, and they share a common command-line parser library in
      CmdLineParser.  The flags related to modes (--makde, --interactive
      etc.) are now private to the front end: in fact private to Main
      itself, for now.
      d1c1b7d0
    • simonmar's avatar
      [project @ 2005-03-18 11:19:27 by simonmar] · 6a51f7df
      simonmar authored
      merge rev. 1.6.2.1, simplified slightly:
      
        Initialise a CostCentreStack by generating SIZEOF_CostCentreStack
        (gotten from the C compiler) zeros, padded to the nearest word.
        Improves on the previous fixes for unpredictable padding (see comment).
      6a51f7df
    • simonmar's avatar
      [project @ 2005-03-18 11:16:27 by simonmar] · 5970d44a
      simonmar authored
      Add SIZEOF_CostCentreStack
      5970d44a
    • simonpj's avatar
      [project @ 2005-03-18 09:38:12 by simonpj] · a983db17
      simonpj authored
      Clarify -main-is documentation
      a983db17
  4. 17 Mar, 2005 10 commits
  5. 16 Mar, 2005 6 commits
  6. 15 Mar, 2005 8 commits
    • sof's avatar
      [project @ 2005-03-15 23:44:06 by sof] · 9a393eb2
      sof authored
      [mingw only]setProgName():
        robustify by looking for the last '/' or '\\' in argv[0].
        My copy of 'gdb' likes to use a mixture of the two, which causes a
        fatal error when trying to debug libHSrts_p.a. Other process-invoking
        apps/shells might be equally wavering when it comes to the use of slashes.
      
      Merge to STABLE.
      9a393eb2
    • krasimir's avatar
      [project @ 2005-03-15 16:37:09 by krasimir] · 2daf9175
      krasimir authored
      all modules from GHC are listed in exposed-modules field
      2daf9175
    • simonmar's avatar
      [project @ 2005-03-15 16:15:46 by simonmar] · c1b3fa59
      simonmar authored
      TARGET->HOST
      c1b3fa59
    • simonpj's avatar
      [project @ 2005-03-15 15:40:23 by simonpj] · b462d6a6
      simonpj authored
      ----------------------------------
       	Two GADT error-reporting bugs
      	----------------------------------
      
      	Merge to STABLE
      
      1.  Bug in kind-checking for GADTs; turned out to be in
          isOpenTypeKind on KindVars
      
      2.  Missed check for the return type for GADTs
      b462d6a6
    • krasimir's avatar
      [project @ 2005-03-15 15:11:41 by krasimir] · 931de17e
      krasimir authored
      package.conf.in is changed to the new syntax. The list of exposed modules still
      have only one module GHC
      931de17e
    • simonmar's avatar
      [project @ 2005-03-15 12:11:39 by simonmar] · 71ae8ec9
      simonmar authored
      A very rough start at the GHC API, here so that others can look and
      modify it.
      71ae8ec9
    • ross's avatar
      [project @ 2005-03-15 11:59:32 by ross] · 1dfb756e
      ross authored
      Fix (and test) for SourceForge bug 1161624: erroneous rejection of
      
      	foo = proc x -> arr (\y -> y-1) -< x
      
      Now open a new level for the left side of -<, so that variables bound
      in the proc are illegal, but variables bound in the expression are OK.
      
      Note that the levels gimmick doesn't really implement holes in the
      scope: it rules out nasty obfuscations like
      
      	foo x = proc x -> arr (\y -> x-1) -< x
      
      Also added the same treatment to the head of a `form', where it was
      missing.
      
      (for STABLE)
      1dfb756e
    • krasimir's avatar
      [project @ 2005-03-15 10:33:41 by krasimir] · eace8501
      krasimir authored
      Without semicolon after "foundit:" at least mingw32-gcc raises "error: label at end of compound statement".
      eace8501
  7. 14 Mar, 2005 2 commits
  8. 11 Mar, 2005 3 commits
    • simonmar's avatar
      [project @ 2005-03-11 12:54:08 by simonmar] · d3f1a4de
      simonmar authored
      oops, forgot to clean runhaskell
      d3f1a4de
    • simonpj's avatar
      [project @ 2005-03-11 10:37:50 by simonpj] · 3981b966
      simonpj authored
      ----------------------------------
       	Attend to fixity of '->' in types
      	----------------------------------
      
      	Merge to STABLE
      
      Another wibble to the infix-type-constructor story. Actually
      this has been a bug for some time: function type constructors
      were not being re-associated, because they are not HsOpAppTys.
      3981b966
    • simonpj's avatar
      [project @ 2005-03-11 10:36:35 by simonpj] · 75649bcc
      simonpj authored
      ----------------------------------
       	Fix a "class used as a type" crash
      	----------------------------------
      
      	Merge to STABLE
      
      Thanks to Shae for finding this one.  tcfail134 tests.
      75649bcc
  9. 10 Mar, 2005 2 commits