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 5 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
  4. 17 Mar, 2005 6 commits
  5. 16 Mar, 2005 3 commits
  6. 15 Mar, 2005 5 commits
    • 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
    • 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
  7. 11 Mar, 2005 2 commits
    • 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
  8. 10 Mar, 2005 3 commits
  9. 09 Mar, 2005 7 commits
    • simonpj's avatar
      [project @ 2005-03-09 17:54:59 by simonpj] · fe44e471
      simonpj authored
      Fix indirection-shorting problem
      fe44e471
    • simonpj's avatar
      [project @ 2005-03-09 17:51:03 by simonpj] · 95daf246
      simonpj authored
      Comments
      95daf246
    • simonpj's avatar
      [project @ 2005-03-09 16:58:15 by simonpj] · f1fd0522
      simonpj authored
      Add parser support for infix type-variable operators
      f1fd0522
    • simonpj's avatar
      [project @ 2005-03-09 14:26:56 by simonpj] · aca101dd
      simonpj authored
      Fix the superclass translation for instance decls
      			Merge to STABLE
      
      There is a long-standing difficulty whereby it's surprisingly easy 
      to accidentally generate an entirely-bogus recursive dictionary when 
      generating the definitions for the superclasses of an instance decl.
      
      The problem arises because the default story is that whenever we
      add a constraint to our pile of solved constraints, we automatically
      add all its superclasses.  But that is simply wrong when we are trying
      to generate superclasses. 
      
      Solution: do no auto-superclass addition when solving the superclass
      constraints of an instance declaration.  I think should fix it once and
      for all.  
      
      	tcrun021, tcrun033 are test cases
      
      tcrun033 showed up the bug; thanks to Simon Foster and Ralf Laemmel.
      aca101dd
    • simonpj's avatar
      [project @ 2005-03-09 10:56:09 by simonpj] · 0d197643
      simonpj authored
      Add missing provenance for mfix; pls merge
      0d197643
    • simonmar's avatar
      [project @ 2005-03-09 10:38:17 by simonmar] · d04c4288
      simonmar authored
      Use a different magic number (0x1face64) for 64-bit interface files.
      This will prevent us trying to read the dictionary out of a 32-bit
      interface file on a 64-bit machine.
      d04c4288
    • simonmar's avatar
      [project @ 2005-03-09 10:36:38 by simonmar] · 1c63991c
      simonmar authored
      revert previous change, it didn't work
      1c63991c
  10. 08 Mar, 2005 7 commits