- Jul 10, 2000
-
-
Reuben Thomas 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.
-
- Jul 09, 2000
-
-
sven.panne@aedion.de authored
Third attempt by two people trying to get a simple fprintf right again... :-}
-
sven.panne@aedion.de 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.
-
sven.panne@aedion.de 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.
-
- Jul 08, 2000
-
-
sven.panne@aedion.de authored
Synched section on packages with new generalized package file format
-
sven.panne@aedion.de authored
Generalized the package file format a little bit: include directories, include files, and options are now lists of Strings.
-
sven.panne@aedion.de authored
After the last fix in PprAbs.ppr_amode, we now need a cast from StgClosure* to P_ in UPD_FRAME_UPDATEE. I'm not sure if this is the nicest way to fix this, CgCon.cgReturnDataCon is another candidate. It looks a little bit like PrimRep distinguishes not enough between the different kind of pointers (there's no alternative for L_).
-
sven.panne@aedion.de authored
Fixed Show instance for Exception
-
sven.panne@aedion.de authored
Synch format string with actual args
-
- Jul 07, 2000
-
-
Simon Peyton Jones 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.
-
Simon Peyton Jones authored
Improve comments
-
Simon Peyton Jones authored
Fix duplicate class assertion error msg
-
Simon Marlow 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.
-
Simon Marlow 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.
-
Simon Marlow authored
fix -keep-hc-file-too
-
Simon Marlow authored
revert rev. 1.81
-
- Jul 06, 2000
-
-
sven.panne@aedion.de authored
Typo
-
Keith Wansbrough authored
Fix obvious typo (pprStgARg for pprStgArg). Clearly not a frequently- tickled part of the compiler!
-
Simon Peyton Jones 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)
-
Simon Marlow authored
Add Marcin Kowalczyk and Michael Weber to the "Additional Contributors" section.
-
Simon Marlow 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.
-
Simon Marlow authored
no need to set hsc_lang = HscC when -split-objs is on.
-
Simon Marlow 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.
-
Reuben Thomas authored
Corrected URLs.
-
Simon Marlow authored
New section on Packages, collecting together the various package-related documentation and adding some new stuff about the package management features.
-
Reuben Thomas authored
Bump the version no.
-
Simon Marlow authored
ghc 4.06 didn't have -package, so use it only for 4.07+.
-
- Jul 05, 2000
-
-
Simon Marlow 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.
-
Simon Marlow authored
Packages can now be added/removed from an installed GHC as follows: $ ./ghc-inplace --list-packages gmp, rts, std, lang, concurrent, data, net, posix, text, util, hssource, win32, com, std2 $ ./ghc-inplace --add-package <newpkg Reading package info from stdin... done. Saving old package config file... done. Writing new package config file... done. $ ./ghc-inplace --list-packages gmp, rts, std, lang, concurrent, data, net, posix, text, util, hssource, win32, com, std2, mypkg $ ./ghc-inplace --delete-package mypkg Saving old package config file... done. Writing new package config file... done. $ ./ghc-inplace --list-packages gmp, rts, std, lang, concurrent, data, net, posix, text, util, hssource, win32, com, std2 This is a first stab at the kind of functionality we need for installing Haskell libraries via RPMs: the RPM script would install the libraries, and then do a "ghc --add-package" passing the appropriate paths. You'd then have "ghc -package" at your disposal to use the newly installed package. Similarly on de-install, the RPM script would run "ghc --delete-package". Also in this commit: prettify the package dumping.
-
Keith Wansbrough authored
Add -t flag to specify title of report.
-
Julian Seward authored
Rename the marker used by Diff_Gcc_Nat.hs to ___ncg_debug_marker, to make it clear it has nothing to do with the usual object-splitting machinery. Improve Diff_Gcc_Nat: * Emit a warning, and stop, if there are no debug markers in the NCG code. * Handle .uahalf and .uaword, which appear in sparc assembly, but not x86.
-
Julian Seward authored
Make -S work when going via the NCG.
-
- Jul 04, 2000
-
-
sven.panne@aedion.de authored
From the Ancient Book of Infinite CS Wisdom: "Thou shalt remove unused imports after dead code removal..." ;-)
-
Reuben Thomas authored
Remove info target for install (we can no longer make info from SGML).
-
Simon Marlow authored
Don't need to install HsStd.h in ghc/includes anymore. The driver looks for it here.
-
- Jul 03, 2000
-
-
sven.panne@aedion.de authored
Print "Interface file unchanged" and "Module version unchanged, but usages differ; hence need new hi file" only when -ddump-rn-trace flag has been given. This is more consistent with the rest of GHC and the *nix world, and messes up less tests.
-
sven.panne@aedion.de authored
Added semicolon to synch with current interface file syntax. Note: The `class' line contains a kind bug, but this is not checked. Bug or feature?
-
sven.panne@aedion.de authored
Removed foralls in expected output
-
sven.panne@aedion.de authored
Synched expected output with reality
-
sven.panne@aedion.de authored
Litlits don't really make much sense for the NCG (i.e. are a hack), so compile via C.
-