- 29 Oct, 2009 5 commits
-
-
chak@cse.unsw.edu.au. authored
-
Ian Lynagh authored
Add some comments and better error reporting
-
simonpj@microsoft.com authored
-
Ian Lynagh authored
so if the "cd" fails we don't charge on regardless.
-
Ian Lynagh authored
On some systems (bash 4?) configure fails because of it when "gcc -V" fails.
-
- 28 Oct, 2009 5 commits
-
-
simonpj@microsoft.com authored
-
simonpj@microsoft.com authored
While I was dealing with 'rec' statements I did this tidy-up
-
simonpj@microsoft.com authored
The change is this (see Trac #2798). Instead of writing mdo { a <- getChar ; b <- f c ; c <- g b ; putChar c ; return b } you would write do { a <- getChar ; rec { b <- f c ; c <- g b } ; putChar c ; return b } That is, * 'mdo' is eliminated * 'rec' is added, which groups a bunch of statements into a single recursive statement This 'rec' thing is already present for the arrow notation, so it makes the two more uniform. Moreover, 'rec' lets you say more precisely where the recursion is (if you want to), whereas 'mdo' just says "there's recursion here somewhere". Lastly, all this works with rebindable syntax (which mdo does not). Currently 'mdo' is enabled by -XRecursiveDo. So we now deprecate this flag, with another flag -XDoRec to enable the 'rec' keyword. Implementation notes: * Some changes in Lexer.x * All uses of RecStmt now use record syntax I'm still not really happy with the "rec_ids" and "later_ids" in the RecStmt constructor, but I don't dare change it without consulting Ross about the consequences for arrow syntax.
-
simonpj@microsoft.com authored
-
simonpj@microsoft.com authored
-
- 27 Oct, 2009 1 commit
-
-
Ian Lynagh authored
-
- 26 Oct, 2009 1 commit
-
-
simonpj@microsoft.com authored
Coercion terms can get big (see Trac #2859 for example), so this patch puts the infrastructure in place to optimise them: * Adds Coercion.optCoercion :: Coercion -> Coercion * Calls optCoercion in Simplify.lhs The optimiser doesn't work right at the moment, so it is commented out, but Tom is going to work on it.
-
- 23 Oct, 2009 4 commits
-
-
simonpj@microsoft.com authored
-
simonpj@microsoft.com authored
I needed it, and then didn't need it, so it's not currently called, but its generally useful kind of thing.
-
simonpj@microsoft.com authored
-
simonpj@microsoft.com authored
There was a subtle bug in the interation of specialisation and floating, described in Note [Specialisation of dictionary functions]. The net effect was to create a loop where none existed before; plain wrong. In fixing it, I did quite a bit of house-cleaning in the specialiser, and added a lot more comments. It's tricky, alas.
-
- 20 Oct, 2009 2 commits
-
-
simonpj@microsoft.com authored
The bug related to the fact that boxyUnify (now) returns a coercion, which was simply being ignored. (TcExpr is clearly not warning-free wrt the unused-monadic-bind thing!) Anyway, it's fine now. I added a test case to the test suite. MERGE to 6.12 please.
-
simonpj@microsoft.com authored
The two used to be incompatible, but they aren't any longer. In fact, -ticky should not be a 'way' any more, and doing that is on Simon M's todo list, but this patch takes us a little step closer. I'm not sure this is worth merging to the 6.12 branch.
-
- 25 Oct, 2009 1 commit
-
-
Ian Lynagh authored
-
- 24 Oct, 2009 1 commit
-
-
Ian Lynagh authored
We no longer ship readline
-
- 23 Oct, 2009 5 commits
-
-
Ian Lynagh authored
-
Ian Lynagh authored
-
Ian Lynagh authored
-
Ian Lynagh authored
dblatex with miktex under msys/mingw can't build the PS and PDF docs, and just building the HTML docs is sufficient to check that the markup is correct, so we turn off PS and PDF doc building when validating.
-
Ian Lynagh authored
So if something configure does fails, so does the whole configur script
-
- 20 Oct, 2009 2 commits
-
-
Ian Lynagh authored
We now use an msys/mingw perl tarball
-
Ian Lynagh authored
-
- 14 Oct, 2009 2 commits
-
-
Ian Lynagh authored
We now use it for libffi and the mingw tarballs
-
Ian Lynagh authored
-
- 20 Oct, 2009 5 commits
-
-
Simon Marlow authored
We weren't checking the black-hole queue in the non-threaded RTS.
-
simonpj@microsoft.com authored
I wanted to see the TH syntax produced by a splice, before its conversion back into HsSyn. Doing so involved some refactoring. This only affects deubbging code (-ddump-tc-trace).
-
simonpj@microsoft.com authored
It turned out that we lacked flags to switch off these two passes, so I added them.
-
simonpj@microsoft.com authored
-
simonpj@microsoft.com authored
This bug was introduced when I added an optimisation, described in Note [Converting strings] in Convert.lhs. It was treating *all* empty lists as strings, not just string-typed ones! The fix is easy. Pls MERGE to stable branch.
-
- 15 Oct, 2009 6 commits
-
-
Simon Marlow authored
-
Simon Marlow authored
GHC's recompilation checker doesn't take into account #included files, which is really a bug. We work around it here by adding dependencies and using -fforce-recomp in a couple of places.
-
simonpj@microsoft.com authored
DO NOT MERGE TO GHC 6.12 branch (Reason: interface file format change.) The typechecker needs to instantiate otherwise-unconstraint type variables to an appropriately-kinded constant type, but we didn't have a supply of arbitrarily-kinded tycons for this purpose. Now we do. The details are described in Note [Any types] in TysPrim. The fundamental change is that there is a new sort of TyCon, namely AnyTyCon, defined in TyCon. Ter's a small change to interface-file binary format, because the new AnyTyCons have to be serialised. I tided up the handling of uniques a bit too, so that mkUnique is not exported, so that we can see all the different name spaces in one module.
-
simonpj@microsoft.com authored
These missing dependencies led to: ghc-stage1: panic! (the 'impossible' happened) (GHC version 6.13 for x86_64-unknown-linux): urk! lookup local fingerprint ghc-6.13:CgBindery.CgBindings{tc r4Z} Simon and I don't quite understand why I've encountered these while no one else has, but they are certainly bugs, and this patch certainly fixes them. Merge to 6.12 branch
-
simonpj@microsoft.com authored
-
simonpj@microsoft.com authored
In general, when pretty-printing HsSyn, we omit the extra info added by GHC (type appplications and abstractions, etc) when printing stuff for the user. But we weren't applying that guideline to the HsTick stuff for Hpc. This patch adds the necessary tests.
-