- 09 Nov, 2002 2 commits
- 08 Nov, 2002 4 commits
-
-
simonpj authored
-------------------------------- Expression simplification for TH -------------------------------- Simplify expressions without any inlining in SimplCore.simplifyExpr. simplifyExpr is used to simplify a TH splice before running the code, and simplifyExpr was using (SimplPhase 0) which allows inlining. Unfortunately, when -O is on (which can happen when compiling a program with some splices with -O) some inlining can happen which then confuses the byte-code generator. (Unboxed tuples.)
-
simonpj authored
Wibbles
-
simonmar authored
oops, should really check for .hi-boot-<version> before .hi-boot
-
simonpj authored
------------------ More TH stuff (thanks to Ian L) ------------------ * Make TH Literals have an Integer not an Int * Desguar TH 'foreign import' a bit better * Minor documentation changes
-
- 07 Nov, 2002 2 commits
-
-
simonmar authored
Put a "warning:" prefix on a DEBUG belch msg to make it clearer that this isn't an error.
-
simonpj authored
------------------ Fix an obscure bug in implicit parameters, interacting with lazy pattern matching ------------------ MERGE TO STABLE BRANCH The problem was this: data UniqueSupply = US Integer newUnique :: (?uniqueSupply :: UniqueSupply) => Integer newUnique = r where US r = ?uniqueSupply The lazy pattern match in the where clause killed GHC 5.04 because the SourceType {?uniqueSupply::UniqueSupply} of the RHS of the 'where' didn't look like a UniqueSupply. The fix is simple: in DsUtils.mkSelectorBinds, use the pattern, not the rhs, to get the type reqd. More efficient too. Test is typecheck/should_compile/tc164.hs
-
- 06 Nov, 2002 3 commits
-
-
simonpj authored
------------------ Template Haskell stuff ------------------ a) Pretty printer for TH (thanks to Ian Lynagh) b) A declaration quote has type Q [Dec], not [Q Dec] as in the paper c) Foreign imports are part of THSyntax, and can be spliced in
-
simonpj authored
More wibbles to do with export lists
-
simonpj authored
Dont bail out quite so fast
-
- 05 Nov, 2002 7 commits
-
-
wolfgang authored
Add the appropriate barf for memory allocation failures on Mac OS X.
-
simonpj authored
Formatting and dead code
-
simonpj authored
------------------ Fix module exports ------------------ GHC was doing the wrong thing when it came to detecting conflicts on exports from 'module M' items. This commit fixes it. There's a test in rename/should_fail/rnfail040
-
simonpj authored
Better reporting of unused bindings
-
simonmar authored
More wibbles: move the out of memory error message into my_mmap() to avoid duplication, and add a couple of ToDo comments.
-
simonmar authored
Wibble in "out of memory" error message (we actually get to see it now, rather than "getMBlock: misaligned block...").
-
simonpj authored
Wibble when renaming splices
-
- 04 Nov, 2002 1 commit
-
-
simonpj authored
Fix reifyDecl
-
- 01 Nov, 2002 3 commits
-
-
simonmar authored
warning police: #include <string.h> to get proto for strlen()
-
simonmar authored
total_alloc should be a 64-bit couunter. MERGE TO STABLE
-
simonmar authored
Fix the heapCensus crash. It turned out that after a GC, the small_alloc_list might be non-empty if a new finalizer thread had been started. The last block on small_alloc_list doesn't have the free pointer set correctly (as a small optimisation, we don't normally set the free pointer after each allocation, only when the block is full). The result was that the free pointer contains the wrong value, and the heap census traverses garbage. The fix is to set the free pointer correctly before traversing small_alloc_list. The bug doesn't show up when DEBUG is on, because extra DEBUG checks cause the free pointer to be initialised to a sensible(-ish) value. Hence my difficulty in reproducing the bug. To reproduce: compile ghc-regress/lib/should_run/memo002 with profiling and run it with a sufficiently small sample interval (-i0.02 did it for me). Thanks to the kind folks at ARM for helping out with the debugging of this one. MERGE TO STABLE
-
- 31 Oct, 2002 2 commits
- 30 Oct, 2002 4 commits
- 29 Oct, 2002 9 commits
-
-
simonpj authored
Oops... add missing free-vars
-
sof authored
err msg wibble
-
simonmar authored
Add a note about where the time spent in foreign code is attributed.
-
chak authored
Cleaned up `repE'. Reordered to match order of cases in HsExpr and made an effort to catch all cases.
-
simonpj authored
Wibble to lint-ing unfoldings
-
chak authored
Added a case for HsPar to repE. Also completed the cases in repE to at least panic for the missing syntactic forms of HsExpr. Is there any good reason for the semi-random order of the cases in repE? Using the same order as in the data declaration for HsExpr would make it easier to spot missing cases.
-
simonpj authored
Slight tidy up
-
simonpj authored
Make imports work for pre-504
-
mthomas authored
Remove unnecessary compiler and linker flags for Mingw32.
-
- 28 Oct, 2002 3 commits