This project is mirrored from https://gitlab.haskell.org/ghc/ghc.git.
Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
Last successful update .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
Last successful update .
- 27 Jul, 2009 1 commit
-
-
Simon Marlow authored
-
- 26 Jul, 2009 2 commits
-
-
Ian Lynagh authored
Fixes #3168
-
Ian Lynagh authored
This means GHC knows whether it's building a Cabal package, or just Haskell sources. For example, it may wish to give different error messages when building a Cabal package.
-
- 25 Jul, 2009 1 commit
-
-
Ian Lynagh authored
-
- 24 Jul, 2009 5 commits
-
-
Ian Lynagh authored
-
Ian Lynagh authored
-
Simon Marlow authored
-
Simon Marlow authored
-
Simon Marlow authored
This also fixes a memory leak on Windows with -threaded, because we were calling initMutex(&gc_running_mutex) for each GC, which allocates memory.
-
- 23 Jul, 2009 16 commits
-
-
Simon Marlow authored
And kill the duplicate one in HsSyn.Convert
-
Simon Marlow authored
-
Simon Marlow authored
It should be safe to use now that we aren't relying on C prototypes for foreign functions in via-C code.
-
Simon Marlow authored
-
simonpj@microsoft.com authored
Before this patch we were bogusly making to/from bindings for all data types in the TcGblEnv. But that is wrong when we have multiple "chunks" of bindings in Template Haskell. We should start from the declarations themselves. Easy.
-
simonpj@microsoft.com authored
By printing explicit braces we make it more likely that pretty-printed code will be acceptable if fed back into GHC. See http://www.haskell.org/pipermail/glasgow-haskell-users/2009-July/017554.html
-
simonpj@microsoft.com authored
-
Simon Marlow authored
Otherwise it defaults to latin1.
-
simonpj@microsoft.com authored
In standalone deriving, we now do *not* check side conditions. We simply generate the code and typecheck it. If there's a type error, it's the programmer's problem. This means that you can do 'deriving instance Show (T a)', where T is a GADT, for example, provided of course that the boilerplate code does in fact typecheck. I put some work into getting a decent error message. In particular if there's a type error in a method, GHC will show the entire code for that method (since, after all, the user did not write it). Most of the changes are to achieve that goal. Still to come: changes in the documentation.
-
simonpj@microsoft.com authored
-
simonpj@microsoft.com authored
This makes the code printed by -ddump-deriv look prettier
-
simonpj@microsoft.com authored
-
simonpj@microsoft.com authored
When reporting an error from a failed equality constraint, we were setting the *context* but not the *line number* in TcTyFuns.eqInstMisMatch As a result, the line number didn't match the context at all. It's trivial to fix. I'm 99% certain this fixes #3193, but it's too complicated to reproduce, so I have not actually tested it.
-
simonpj@microsoft.com authored
This function isn't used at the moment, but Max added it, and it looks useful.
-
simonpj@microsoft.com authored
This patch adds tuple sections, so that (x,,z) means \y -> (x,y,z) Thanks for Max Bolinbroke for doing the hard work. In the end, instead of using two constructors in HsSyn, I used just one (still called ExplicitTuple) whose arguments can be Present (LHsExpr id) or Missing PostTcType While I was at it, I did a bit of refactoring too.
-
Simon Marlow authored
redefinition warnings for all files that are including includes/Rts.h. Contributed by: Krister Walfridsson <krister.walfridsson@gmail.com>
-
- 22 Jul, 2009 5 commits
-
-
SamB authored
-
SamB authored
-
Ian Lynagh authored
Rather than indirecting through an integer package
-
Ian Lynagh authored
-
Ian Lynagh authored
-
- 19 Jul, 2009 1 commit
-
-
Ian Lynagh authored
-
- 22 Jul, 2009 1 commit
-
-
Simon Marlow authored
-
- 20 Jul, 2009 2 commits
-
-
Simon Marlow authored
-
Simon Marlow authored
Now, for a compiler-generated binding "x", if "x" is referred to by the exported "f", then it will be named "f_x" rather than something like "x23". This means that hopefully - compilation will more often product the same results given the same input (the choice of names is not dependent on the non-deterministic order of bindings within the compiler). - less recompilation will be necessary after making changes - navigating Core might be a bit easier. unfortunately, compilation with -O still does not consistently produce the same ABI. The simplifier sometimes does different things, apparently. Names will be longer, but I can't see a way around that.
-
- 17 Jul, 2009 1 commit
-
-
Simon Marlow authored
Fixes another cause of wobbly interface files and unnecessary recompilation.
-
- 16 Jul, 2009 1 commit
-
-
Simon Marlow authored
-
- 22 Jul, 2009 1 commit
-
-
simonpj@microsoft.com authored
When matching against a GADT, some of the constructors may be impossible. For example data T a where T1 :: T Int T2 :: T Bool T3 :: T a f :: T Int -> Int f T1 = 3 f T3 = 4 Here, does not have any missing cases, despite omittting T2, because T2 :: T Bool. This patch teaches the overlap checker about GADTs, which happily turned out to be rather easy even though the overlap checker needs a serious rewrite.
-
- 20 Jul, 2009 1 commit
-
-
simonpj@microsoft.com authored
Max spotted that the short-cut rules for desugaring NPats (where we compare against a literal) were wrong now that we have overloaded strings.
-
- 19 Jul, 2009 2 commits
-
-
Ian Lynagh authored
This is used to control warnings that were previously unconditional.
-
Ian Lynagh authored
-