1. 11 Jul, 2000 11 commits
  2. 10 Jul, 2000 2 commits
    • rrt's avatar
      [project @ 2000-07-10 16:56:56 by rrt] · 56b76501
      rrt authored
      Test file; will shortly be removed.
      56b76501
    • rrt's avatar
      [project @ 2000-07-10 16:15:33 by rrt] · ee13c263
      rrt authored
      Removed carriage returns (\r) from source files. Please don't check in such
      things; they can cause problems on Cygwin (funnily enough). I'm looking into
      how to avoid commiting carriage returns when working under Windows.
      ee13c263
  3. 09 Jul, 2000 3 commits
    • panne's avatar
      [project @ 2000-07-09 16:17:10 by panne] · caea0cb9
      panne authored
      Third attempt by two people trying to get a simple fprintf right
      again...   :-}
      caea0cb9
    • panne's avatar
      [project @ 2000-07-09 16:06:28 by panne] · 7f8d266e
      panne authored
      Install HsStd.h, stgio.h, stgerror.h, and fileObject.h, too. Hmmm,
      this looks not particularly nice, perhaps we should merge those into a
      single HsStd.h some day.
      7f8d266e
    • panne's avatar
      [project @ 2000-07-09 16:00:55 by panne] · de972178
      panne authored
      By definition (sec. 7.3 in the H98 report), userError raises an
      IOError, so Prelude.catch should catch UserError exceptions, too.
      Apart from not conforming to the report, without this patch GHC's
      typechecker falls straight on its face.
      de972178
  4. 08 Jul, 2000 5 commits
  5. 07 Jul, 2000 7 commits
    • simonpj's avatar
      [project @ 2000-07-07 12:13:43 by simonpj] · 7bb06950
      simonpj authored
      This commit moves the instance environment out of the Class data
      structure, where it was immutable, to part of the type-checker
      environment.  This change is absolutely essential as part of
      our move to GHCi, and I think it's also going to be necessary
      for Andrei's work on generic functions.
      
      As part of this change, we can remove
      
        a) types/InstEnv.*	(thereby also removing a hi-boot loop)
        b) a tc-fixpoint-loop in TcModule
      
      Both of these are worthwhile simplifications.
      7bb06950
    • simonpj's avatar
      [project @ 2000-07-07 12:13:22 by simonpj] · ec459c23
      simonpj authored
      Improve comments
      ec459c23
    • simonpj's avatar
      [project @ 2000-07-07 12:12:48 by simonpj] · 23cb37fa
      simonpj authored
      Fix duplicate class assertion error msg
      23cb37fa
    • simonmar's avatar
      [project @ 2000-07-07 11:03:57 by simonmar] · 6151c960
      simonmar authored
      Rearrange exception stuff, as per my message on glasgow-haskell-users
      recently.
      
      The main change is the IOError type is now a synonym for Exception.
      IO.ioError can therefore be used for throwing exceptions.  IO.catch
      still catches only IO exceptions, for backwards compatibility.
      
      The interface exported by Exception has changed somewhat:
      
      	try       :: IO a -> IO (Either Exception a)
      	tryJust   :: (Exception -> Maybe b) -> a    -> IO (Either b a)
      
      	catch     :: IO a -> (Exception -> IO a) -> IO a
      	catchJust :: (Exception -> Maybe b) -> IO a -> (b -> IO a) -> IO a
      
      	ioErrors		:: Exception -> Maybe IOError
      	arithExceptions 	:: Exception -> Maybe ArithException
      	errorCalls		:: Exception -> Maybe String
      	dynExceptions		:: Exception -> Maybe Dynamic
      	assertions		:: Exception -> Maybe String
      	asyncExceptions 	:: Exception -> Maybe AsyncException
      
      raiseInThread is now called throwTo.
      
      Where possible, the old functions have been left around, but marked
      deprecated.
      6151c960
    • simonmar's avatar
      [project @ 2000-07-07 10:35:32 by simonmar] · 219fbecc
      simonmar authored
      Remove the cast from CMacroExprs - it doesn't appear to be needed.
      This fixes the recently introduced bug when compiling CCS_HDR macros
      in profiling code.
      219fbecc
    • simonmar's avatar
      [project @ 2000-07-07 09:44:31 by simonmar] · c01c4779
      simonmar authored
      fix -keep-hc-file-too
      c01c4779
    • simonmar's avatar
      [project @ 2000-07-07 09:37:39 by simonmar] · 29e5b129
      simonmar authored
      revert rev. 1.81
      29e5b129
  6. 06 Jul, 2000 11 commits
    • panne's avatar
      [project @ 2000-07-06 20:50:37 by panne] · e65d8417
      panne authored
      Typo
      e65d8417
    • keithw's avatar
      [project @ 2000-07-06 17:22:40 by keithw] · a75df25a
      keithw authored
      Fix obvious typo (pprStgARg for pprStgArg).  Clearly not a frequently-
      tickled part of the compiler!
      a75df25a
    • simonpj's avatar
      [project @ 2000-07-06 16:31:45 by simonpj] · 525898a9
      simonpj authored
      * Improve the warning "M is imported but nothing from it is used"
        In particular, don't warn if some instances from it are imported.
      
        It's pretty much impossible to do the Right Thing always.
        A comment in Rename.lhs says
      	-- NOTE: Consider
      	--	      module This
      	--		import M ()
      	--
      	--	 The import M() is not *necessarily* redundant, even if
      	-- 	 we suck in no instance decls from M (e.g. it contains
      	--	 no instance decls, or This contains no code).  It may be
      	--	 that we import M solely to ensure that M's orphan instance
      	--	 decls (or those in its imports) are visible to people who
      	--	 import This.  Sigh.
      	--	 There's really no good way to detect this, so the error message
      	--	 in RnEnv.warnUnusedModules is weakened instead
      
      * Minor comment changes to RnIfaces.lhs
      
      * Use NameEnv instead of UFM in TcEnv (tidy up only)
      525898a9
    • simonmar's avatar
      [project @ 2000-07-06 16:28:40 by simonmar] · 89cefac8
      simonmar authored
      Add Marcin Kowalczyk and Michael Weber to the "Additional
      Contributors" section.
      89cefac8
    • simonmar's avatar
      [project @ 2000-07-06 15:43:28 by simonmar] · df480464
      simonmar authored
      A string constant block can consist of multiple .string/.ascii
      directives.  The sparc-specific code in this file already handled this
      properly, but the x86 code was wrong.
      df480464
    • simonmar's avatar
      [project @ 2000-07-06 15:24:57 by simonmar] · 09c44c1e
      simonmar authored
      no need to set hsc_lang = HscC when -split-objs is on.
      09c44c1e
    • simonmar's avatar
      [project @ 2000-07-06 14:08:31 by simonmar] · 5d42ac16
      simonmar authored
      New form of literal: MachLabel, for addresses of labels.  Used by
      foreign label instead of MachLitLit now.
      
      Real lit-lits now cause the NCG to panic.
      
      Also: removed CLitLit from AbsCSyn; it was only used in one place for
      a purpose it shouldn't have been used for in the first place.
      5d42ac16
    • rrt's avatar
      [project @ 2000-07-06 13:42:35 by rrt] · f7e174ea
      rrt authored
      Corrected URLs.
      f7e174ea
    • simonmar's avatar
      [project @ 2000-07-06 13:32:35 by simonmar] · a058828d
      simonmar authored
      New section on Packages, collecting together the various
      package-related documentation and adding some new stuff about the package
      management features.
      a058828d
    • rrt's avatar
      [project @ 2000-07-06 11:43:24 by rrt] · 040b3640
      rrt authored
      Bump the version no.
      040b3640
    • simonmar's avatar
      [project @ 2000-07-06 09:35:37 by simonmar] · 07080fd8
      simonmar authored
      ghc 4.06 didn't have -package, so use it only for 4.07+.
      07080fd8
  7. 05 Jul, 2000 1 commit
    • simonmar's avatar
      [project @ 2000-07-05 17:16:02 by simonmar] · 5cbfe4e7
      simonmar authored
      bullet-proof the package code a bit more; check for write access to the
      configuration file before doing anything, check whether we're adding a
      package that's already there, etc.
      5cbfe4e7