- 07 May, 2001 4 commits
- 04 May, 2001 14 commits
-
-
simonmar authored
comment explaining why we check the perms on . before reading ./.ghci.
-
simonmar authored
.raw_s is a haskellish_suffix.
-
simonmar authored
document :set -package
-
simonmar authored
- only read ~/.ghci if it is owned by the current user and isn't writable by anyone else. - Only read ./.ghci if both . and ./.ghci are owned by the current user and aren't writable by anyone else. I think this is sufficient: we don't need to check .. and ../.. etc. because "." always refers to the same directory while a process is running. - Don't load .so libraries in a package if that package is already linked with GHCi. This stops us re-linking libm, libreadline etc. - Allow packages to be loaded from within GHCi using :set -package <name> NOTE: this will unload all modules currently loaded into the interpreter. I did this to be on the safe side - I think perhaps it isn't necessary, but I haven't thought it through fully yet. - fix CompManager.cmUnload in the process. It was wrong in several ways. MERGE WITH 5.00
-
simonpj authored
Add mutual recursion between types test
-
simonpj authored
Add more TC tracing
-
simonmar authored
touch# should be declared to have_side_effects. This fixes the remaining problem with safe foreign imports and ForeignPtrs.
-
simonpj authored
**** MERGE WITH 5.00 BRANCH ******** -------------------------------- Fix a black hole when type checking type decls -------------------------------- GHC was falling into a black hole when type checking a recursive group of type declarations including a chain of type synonyms. type PhraseFun = PMap -> Float type PMap = () -> Player data Player = P.MkT P.PhraseFun Reason: too much consistency checking in TcMonoType. Easily fixed using the existing wimp_out hack, but it's a mess. This commit fixes it for the 5.00 branch but I'll do something better in the head shortly.
-
simonpj authored
Comments only
-
rrt authored
Script to change "cygwin1.dll" to something else, so that we can have our own version of the cygwin DLL that doesn't clash with any installed DLLs, for great justice.
-
simonmar authored
add flushPackageCache :: [PackageConfig] -> IO () for modifying the list of available packages.
-
qrczak authored
Since overlapping rules (when one is more specific than the other) seem to be handled well, add remaining fromIntegral rules to have optimal conversions in all cases (given available primops).
-
simonpj authored
Comments only
-
simonpj authored
**** MERGE WITH 5.00 BRANCH ******** -------------------------------- Make CPR work only for small products -------------------------------- GHC was barfing when doing CPR for programs involving very large products. A one-line fix in MkId.mkDataCon makes it only do CPR for smaller products (I chose 10). Comments -- We do not treat very big tuples as CPR-ish: -- a) for a start we get into trouble because there aren't -- "enough" unboxed tuple types (a tiresome restriction, -- but hard to fix), -- b) more importantly, big unboxed tuples get returned mainly -- on the stack, and are often then allocated in the heap -- by the caller. So doing CPR for them may in fact make -- things worse. This should fix the error Failed to find interface decl for PrelGHC.(#,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,#) I hope.
-
- 03 May, 2001 22 commits
-
-
sof authored
win32 tweak
-
qrczak authored
Use infix syntax on lhs of some rules.
-
simonmar authored
silence gcc 2.96 warning
-
simonmar authored
oops, fix braino
-
simonmar authored
redirect CPP output to /dev/null; gcc 2.96 seems to behave differently that 2.95 when the -E and -MMD flags are given.
-
simonmar authored
Arrange to call touch# on each ForeignObj# argument after a 'safe' foreign import call. This turned out to be the easiest place to implement it: if we'd done it in CorePrep or CoreToStg, it would have been awkward to generate the simplest code. At least doing it in the desugarer gives the simplifier a crack at it later.
-
simonpj authored
**** MERGE WITH 5.00 BRANCH ******** -------------------------------- Monomorphism restriction for implicit parameters -------------------------------- This commit tidies up the way in which monomorphic bindings are dealt with, incidentally fixing a bug to do with implicit parameters. The tradeoffs concerning monomorphism and implicit paramters are now documented in TcSimplify.lhs, and all the strategic choices are made there (rather than in TcBinds where they were before). I've continued with choice (B) -- which Jeff first implemented -- because that's what Hugs does, lacking any other consensus.
-
simonpj authored
Add another IP test
-
simonmar authored
Oops, xrefs to varlistentries are unsupported apparently. Xref the section instead.
-
simonpj authored
Correct pretty print of HsIPVar
-
simonmar authored
mention, with a link, the +RTS -xc option.
-
simonmar authored
document the +RTS -xc option
-
simonpj authored
------------------------------------------------ Dramatically improve the error messages arising from failed unifications triggered by 'improvement' ------------------------------------------------ A bit more plumbing in FunDeps, and consequential wibbles elsewhere Changes this: Couldn't match `Int' against `[(String, Int)]' Expected type: Int Inferred type: [(String, Int)] to this: Foo.hs:8: Couldn't match `Int' against `[(String, Int)]' Expected type: Int Inferred type: [(String, Int)] When using functional dependencies to combine ?env :: Int, arising from a type signature at Foo.hs:7 ?env :: [(String, Int)], arising from use of implicit parameter `?env' at Foo.hs:8 When generalising the types for ident
-
simonpj authored
Improve error message when two signature tyvars get unified
-
simonpj authored
Error message wibble
-
simonpj authored
Tidy up output from -ddump-types
-
simonpj authored
Improve error message
-
simonpj authored
Wibble
-
simonmar authored
disable the hsc2hs suffix rules when booting from .hc files.
-
simonpj authored
Add a fundep fail test
-
simonpj authored
Remove bogus test
-
simonpj authored
Add implicit param test
-