- 05 Dec, 2008 10 commits
-
-
simonpj@microsoft.com authored
-
simonpj@microsoft.com authored
-
simonpj@microsoft.com authored
-
simonpj@microsoft.com authored
-
simonpj@microsoft.com authored
-
simonpj@microsoft.com authored
-
simonpj@microsoft.com authored
-
simonpj@microsoft.com authored
GHC now retains more robust information about dead variables; but CoreTidy was throwing it away. This patch makes CoreTidy retain it, which gives better output for -ddump-simpl. New opportunity: shrink interface files by using wildcards for dead variables.
-
simonpj@microsoft.com authored
INLINE pragmas on recursive functions are ignored; and this is checked in my upcoming patch for inlinings.
-
simonpj@microsoft.com authored
-
- 03 Dec, 2008 1 commit
-
-
Ian Lynagh authored
Otherwise, if the bootstrapping compiler has a newer version, we get a mismatch between the version used to compile ghc-prim's Setup.hs and the version that installPackage uses.
-
- 02 Dec, 2008 5 commits
-
-
Thomas Schilling authored
-
Thomas Schilling authored
want to use it.
-
Thomas Schilling authored
-
Thomas Schilling authored
-
Simon Marlow authored
... and use it to make ghc -M generate correct cross-package dependencies when using package-qualified imports (needed for the new build system). Since we're already parsing the ImportDecl from the source file, there seems no good reason not to keep it in the ModSummary, it might be useful for other things too.
-
- 28 Nov, 2008 2 commits
-
-
Simon Marlow authored
-
Simon Marlow authored
-
- 02 Dec, 2008 1 commit
-
-
Simon Marlow authored
Fixes crashes on Windows and Sparc
-
- 28 Nov, 2008 1 commit
-
-
Simon Marlow authored
-
- 01 Dec, 2008 1 commit
-
-
simonpj@microsoft.com authored
-
- 29 Nov, 2008 1 commit
-
-
shelarcy authored
-
- 30 Nov, 2008 2 commits
-
-
Ian Lynagh authored
-
Ian Lynagh authored
-
- 28 Nov, 2008 9 commits
-
-
Thomas Schilling authored
With this change it should be possible to perform something similar to 'load' by traversing the module graph in dependency order and calling '{parse,typecheck,load}Module' on each. Of course, if you want smart recompilation checking you should still use 'load'.
-
Thomas Schilling authored
parameter to 'InteractiveStatus' to a 'Maybe'.
-
Thomas Schilling authored
-
Thomas Schilling authored
equivalent to a typeclass implementation that uses a functional dependency from the target mode to the result type.
-
Ian Lynagh authored
-
Ian Lynagh authored
-
Ian Lynagh authored
-
Ian Lynagh authored
-
Thomas Schilling authored
part of it. Part of the GHC API essentially represents a compilation framework. The difference of a *framework* as opposed to a *library* is that the overall structure of the functionality is pre-defined but certain details can be customised via callbacks. (Also known as the Hollywood Principle: "Don't call us, we'll call you.") This patch introduces a per-session data structure that contains all the callbacks instead of adding lots of small function arguments whenever we want to give the user more control over certain parts of the API. This should also help with future changes: Adding a new callback doesn't break old code since code that doesn't know about the new callback will use the (hopefully sane) default implementation. Overall, however, we should try and keep the number of callbacks small and well-defined (and provide useful defaults) and use simple library routines for the rest.
-
- 27 Nov, 2008 1 commit
-
-
Thomas Schilling authored
This patch changes 'loadModule' to define a fake linkable. The previous implementation of providing no linkable at all violated a pre-condition in the ByteCode linker. This doesn't fix #2739, but it improves the error message a bit.
-
- 28 Nov, 2008 1 commit
-
-
Simon Marlow authored
The problem is that the packing caused some unaligned loads, which lead to bus errors on Sparc (and reduced performance elsewhere, presumably).
-
- 27 Nov, 2008 2 commits
-
-
Simon Marlow authored
- if the string contains */, we need to fix it (demonstrated by building Cabal with -fvia-C) - the strings can get quite large, so we probably only want to inject comments when some debugging option is on.
-
Thomas Schilling authored
-
- 26 Nov, 2008 3 commits
-
-
Thomas Schilling authored
Previously, loading a set of modules in HscNothing mode and then switching to HscInterpreted could lead to crashes since modules compiled with HscNothing were thought to be valid bytecode objects. This patch forces recompilation in these cases, hence switching between HscNothing and HscInterpreted should be safe now.
-
Thomas Schilling authored
-
Thomas Schilling authored
-