Clear up docs regarding LLVM backend (#8792)

Signed-off-by: Austin Seipp <austin@well-typed.com>
Fix #8801: exclude extra packages from the sdist.

This is special cased a little since it's cleaner, and we don't
necessarily want to remove nofib anyway - just the extra packages.

Signed-off-by: Austin Seipp <austin@well-typed.com>
Really fix #5682 (parsing of promoted datacons)

Patch submitted by an anonymous friend on the bug tracker.

This also fixes TH_RichKinds2 which had a slight message output wibble
(it uses the qualified name of the promoted datacon)

Signed-off-by: Austin Seipp <austin@well-typed.com>
RetainerProfile.c: include missing header (#8810)

Found by clang:

  rts_dist_HC rts/dist/build/RetainerProfile.p_o

  rts/RetainerProfile.c:1779:5:
     error: implicit declaration of function 'markStableTables' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        markStableTables(retainRoot, NULL);

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Signed-off-by: Austin Seipp <austin@well-typed.com>
Update to primitive-0.5.2.1 (again)

This was already performed via
47d725f29376fa1be726e913cdf3dd69c46327c2

However, it was accidently reverted as a side-effect of
2b34947b60069e51abfcada9c45a6d7b590f5a2b

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Add test case for #8806.

GHC 7.6.3 and earlier should fail to type check this but don't.
This was fixed some time between the 7.6.3 and the 7.8rc1 release, so
we're just adding a test to prevent future regressions.
Add a test for d3af980 (#5682)

Signed-off-by: Austin Seipp <austin@well-typed.com>
Fix #8754 again.

This time, we carefully initialize the GC stats only if they're not
already initialized - this way the user can override them (e.g. `+RTS -t
--machine-readable`).

Signed-off-by: Austin Seipp <austin@well-typed.com>
Add VERSION file to gitignore.

Signed-off-by: Austin Seipp <austin@well-typed.com>
Fix installation of ghc-split (#8760)

The rules weren't correctly setting INSTALL_TOPDIRS, and on top of that
the dependencies were wrong when BINDIST=YES.

Authored-by: Evan Hauck <khyperia@live.com>
Authored-by: Austin Seipp <austin@well-typed.com>
Signed-off-by: Austin Seipp <austin@well-typed.com>
Fix typo in documentation of Data.Functor.($>)

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Tweak Haddock markup in Control.Applicative

This (arguably) improves rendering with Haddock 2.14

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Minor fixes to Haddock markup

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Fix #8696 - don't generate static intra-package references.

See the comments in Packages.lhs and the ticket for some more explanation.

This is a temporary fix while we consider a way to re-enable intra-package
references in the mean time.

Authored-by: Reid Barton <rwbarton@gmail.com>
Signed-off-by: Austin Seipp <austin@well-typed.com>
Fix Haddock formatting
Make Outputable instance for HsDocString useful

Seeing "<document comment>" when trying to debug things in Haddock is
utterly useless and because this instance exists, we can't even make our
own. No instance at all would be better than what it was!

Admittedly, this doesn't produce the nicest output. Perhaps wrapping the
comments in {- -} would be in order but I think it's fine until someone
complains.
Add `withMVarMasked` (re #8818)

Like `withMVar`, but the @IO@ action in the second argument is executed
with asynchronous exceptions masked. This completes the `MVar` API,
which already contained `modifyMVarMasked` and `modifyMVarMasked_`.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Use U+2018 instead of U+201B quote mark in compiler messages

This matches GCC's choice of Unicode quotation marks (i.e. U+2018 and U+2019)
and therefore looks more familiar on the console. This addresses #2507.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Provide Typeable1..7 as type synonyms (see #8813)
Language extension wibble (see #8813)