summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update Cabal to tip of v1.20wip/Cabal-1.20Herbert Valerio Riedel2014-04-157-8/+9
| | | | | | | | | | | This corresponds to the RC of the soon-to-be Cabal 1.20 release One noteworthy change is the removal of the `--with-ranlib` flag requiring a small adaptation in the GHC build system. Moreover two new licences were added, MPL and BSD2. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Test Trac #8985Simon Peyton Jones2014-04-142-0/+17
|
* Honour the untouchability of kind variablesSimon Peyton Jones2014-04-142-63/+88
| | | | | | | | | | | | | | | | Trac #8985 showed up a major shortcoming in the kind unifier: it was ignoring untoucability. This has unpredictably-bad consequences; notably, the skolem-escape check can fail. There were two things wrong * TcRnMonad.isTouchableTcM was returning a constant value for kind variables (wrong), and even worse the constant was back-to-front (it was always False). * We weren't even calling isTouchableTcM in TcType.unifyKindX. I'm not sure how this ever worked. Merge to 7.8.3 in due course.
* A bit more trace information in an ASSERT failureSimon Peyton Jones2014-04-141-10/+10
|
* Tidy up trace messageSimon Peyton Jones2014-04-141-1/+1
|
* Better layout for coercion error messageSimon Peyton Jones2014-04-142-8/+9
|
* Update Haddock submodule to follow LHsBindsLR changesHerbert Valerio Riedel2014-04-141-0/+0
| | | | | | | This submodule update was forgotten to be included in eeaea2df3fa585db503034f419c6e4331a4d8a84 Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Typos in commentsGabor Greif2014-04-132-2/+2
|
* Instead of tracking Origin in LHsBindsLR, track it in MatchGroupDr. ERDI Gergo2014-04-1329-200/+186
|
* Make BlockAlloc.c comment slightly more accurate (fixes #8491)Edward Z. Yang2014-04-131-1/+1
| | | | Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
* Fix linked list manipulation code (buggy on consecutive deletion)Edward Z. Yang2014-04-122-3/+6
| | | | Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
* Expected output of as-pattern testDr. ERDI Gergo2014-04-121-0/+4
|
* Add source file for new test that checks that as-patterns are rejectedDr. ERDI Gergo2014-04-121-0/+4
| | | | in pattern synonym definitions
* Remove unused variable binding to fix validateDr. ERDI Gergo2014-04-121-2/+2
|
* Update Haddock submodule reference.Mateusz Kowalczyk2014-04-111-0/+0
|
* Fix #8641, creating directories when we have stubs.Edward Z. Yang2014-04-104-0/+21
| | | | Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
* Split off pattern synonym definition checking from pattern inversionDr. ERDI Gergo2014-04-102-42/+69
|
* Fix egregious blunder in the type flattenerSimon Peyton Jones2014-04-106-37/+78
| | | | | | | | | | | In tidying up the flattener I introduced an error that no regression test caught, giving rise to Trac #8978, #8979. It shows up if you have a type synonym whose RHS mentions type functions, such sas type family F a type T a = (F a, a) -- This synonym isn't properly flattened The fix is easy, but sadly the bug is in the released GHC 7.8.1
* Suppress uniques to stop output wobbling (test for Trac #8958)Simon Peyton Jones2014-04-092-50/+50
|
* Fix #5435, adding new test config check_stdout.Edward Z. Yang2014-04-093-3/+37
| | | | | | | | | | | check_stdout(f) allows you to override the test framework's diff based output checking with another mechanism. f is a function which takes two arguments: the first is the filename containing the observed stdout, the second is the normaliser that would have been applied (in case you want to read, normalise, and then do something.) Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
* Improve error reporting for untouchable type variablesSimon Peyton Jones2014-04-086-41/+77
| | | | | | | | | | | This change adds a suggestion Possible fix: add a type signature for ‘f’ when we have a GADT-style definition with a type we can't figure out. See Note [Suggest adding a type signature] in TcErrors. This initially came up in the discussion of Trac #8968.
* Test Trac #8963Simon Peyton Jones2014-04-082-0/+10
|
* Refactor in worker/wrapper generationSimon Peyton Jones2014-04-081-39/+31
| | | | | | | I don't think there should be any change in behaviour, but the code is clearer now. Function checkSize is elimiated in favour of doing those checks before (rather than after) splitFun/splitThunk.
* Allow a longer demand signature than aritySimon Peyton Jones2014-04-083-15/+25
| | | | | | | | | | See Note [Demand analysis for trivial right-hand sides] in DmdAnal. This allows a function with arity 2 to have a DmdSig with 3 args; which in turn had a knock-on effect, which showed up in the test for Trac #8963. In fact it seems entirely reasonable, so this patch removes the WARN and CoreLint checks that were complaining.
* Don't preprocess .s filesSimon Marlow2014-04-083-24/+29
| | | | | | | | | One important reason is that gcc 4.8.1 sometimes crashes: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60436 Another reason is that preprocessing assembly files unnecessarily slows down compilation.
* Add comments & notes explaining the typing of pattern synonym definitionsDr. ERDI Gergo2014-04-081-6/+94
|
* Improve documentation of GeneralisedNewtypeDerivingSimon Peyton Jones2014-04-081-15/+20
|
* Zonk the existential type variables in tcPatSynDeclSimon Peyton Jones2014-04-083-15/+24
| | | | This was just an omission, which showed up as Trac #8966
* Improve tracing slightlySimon Peyton Jones2014-04-081-2/+3
|
* Clarify bits about role inference in users' guide.Richard Eisenberg2014-04-071-3/+7
|
* users_guide: note -XPatternSynonyms is required for use sitesAustin Seipp2014-04-071-3/+5
| | | | Signed-off-by: Austin Seipp <austin@well-typed.com>
* Derive Typable for promoted data constructors (Trac #8950)Simon Peyton Jones2014-04-076-167/+203
| | | | | | | | | I got sucked into a significant refactoring of the way that Typeable instances are derived. This makes it simpler and more uniform. I also improved the documentation in the user manual. Typeable really is different to other classes, and now gets its own subsection.
* Include LD_OPTS when building the RTS shared libsSimon Marlow2014-04-071-1/+4
|
* Ignore repeated loads of the same archive (#8942)Simon Marlow2014-04-071-18/+32
|
* Update long-out-of-date performance numbers on 32-bitSimon Peyton Jones2014-04-074-24/+47
| | | | Many are improvements!
* Small issue with signatures in a TH splice (fixes Trac #8932)Simon Peyton Jones2014-04-074-2/+29
|
* Require PatternSynonyms language flag when encountering a use of pattern synonymDr. ERDI Gergo2014-04-067-5/+27
| | | | (#8961)
* Add test case for #8950.Richard Eisenberg2014-04-052-0/+19
|
* Fix #8958.Richard Eisenberg2014-04-057-5/+74
| | | | | We now do role inference on stupid datatype contexts, allowing a lightweight role annotation syntax.
* Disable thin archive support on WindowsSimon Marlow2014-04-041-1/+14
|
* Test return value of clock_gettime() for errors.Simon Marlow2014-04-041-3/+13
| | | | | I don't want to fall back to gettimeofday(), because that might have a different absolute value.
* Fix copy/paste error (#8937)Simon Marlow2014-04-041-1/+1
|
* windows: Fix #8870Austin Seipp2014-04-041-2/+43
| | | | | | | | | | This bumps the amount of default reserved and committed stack for GHC executables to 8mb, to work around #8870. A proper fix should happen in 7.8.2 See note [Windows stack usage] in SysTools for the details. Signed-off-by: Austin Seipp <austin@well-typed.com>
* Revert "Revert ad15c2, which causes Windows seg-faults (Trac #8834)"Austin Seipp2014-04-041-21/+64
| | | | This reverts commit a79613a75c7da0d3d225850382f0f578a07113b5.
* Simplify and tidy up the handling of tuple namesSimon Peyton Jones2014-04-047-136/+167
| | | | | | | | | | | | | This fixes Trac #8954. There were actually three places where tuple occ-names were parsed: - IfaceEnv.lookupOrigNameCache - Convert.isBuiltInOcc - OccName.isTupleOcc_maybe I combined all three into TysWiredIn.isBuiltInOcc_maybe Much nicer.
* With AutoDeriveTypeable, derive for promoted constructors, too.Richard Eisenberg2014-04-041-34/+38
| | | | | | This addresses #8950. However, the problem isn't completely solved, because the Prelude types' Typeable instances are not created by AutoDeriveTypeable.
* Update Haddock submoduleMateusz Kowalczyk2014-04-031-0/+0
|
* Parse the variables in a type signature in the order given (Trac #8945)Simon Peyton Jones2014-04-031-2/+2
| | | | | | | | | | This is just making the parser behave more sensibly, and return the list [x,y,z] from the signature x,y,z :: Int rathe than [x,z,y] as now. Turns out that the other use of sig_vars *did* do the right thing already.
* Test Trac #8931Simon Peyton Jones2014-04-033-0/+5
|
* Fix desguaring of bang patterns (Trac #8952)Simon Peyton Jones2014-04-034-5/+15
| | | | A palpable bug, although one that will rarely bite