Changes to ghc(19)

Changes to ghc:
commit aa91cc2ae5151f7e25dbc35f32ef966bc59c2e12
Author: Richard Eisenberg <eir@cis.upenn.edu>
Date:   Sun Feb 9 12:31:01 2014 -0500

    Fix #8759 by not panicking with TH and patsyns.

    We should still have pattern synonyms in TH, though.

    (cherry picked from commit 6122efcabe6e08375f69ee19148ba3838c332559)

commit c6c3fb6cb9683644c5e780304f9290d86e7db9b5
Author: Richard Eisenberg <eir@cis.upenn.edu>
Date:   Sun Feb 9 11:34:19 2014 -0500

    Test #7481, which had already been fixed.

    (cherry picked from commit d1dff94c9a82ffeff0bf92d0f90231a639ade59c)

commit d99fcc16581a752711eabdb07ef1d39a1798dff6
Author: Richard Eisenberg <eir@cis.upenn.edu>
Date:   Sun Feb 9 11:25:42 2014 -0500

    Test #6147, which was fixed with the roles commit.

    (cherry picked from commit 9e0c1ae57526bacaca044a7ce5a6491fb6a7cb42)

commit c0329679818f873ed65b23f4d7e1f72c8b2dd26a
Author: Richard Eisenberg <eir@cis.upenn.edu>
Date:   Sun Feb 9 11:08:07 2014 -0500

    Fix #8758 by assuming RankNTypes when checking GND code.

    (cherry picked from commit 8cc398ff8b3f7408327d99347f440693cb204c0a)

commit 6e68886a29634fddf5777f46a508aba62447ac39
Author: Richard Eisenberg <eir@cis.upenn.edu>
Date:   Sun Feb 9 10:57:44 2014 -0500

    Move test case for #8631 to the correct directory.

    (cherry picked from commit 02c7135dfce049b53bd38aa35c175302652af507)

commit 40705fbe3e57196cd91baa41a1e8571955f94841
Author: Dr. ERDI Gergo <gergo@erdi.hu>
Date:   Sun Feb 9 17:27:24 2014 +0800

    Add test suite for #8757

    (cherry picked from commit 719108f8d70aa50cdaccf564dbc463445a03988e)

commit 4c5b195b6846e83845cb2d5df9385906c19fd172
Author: Dr. ERDI Gergo <gergo@erdi.hu>
Date:   Sun Feb 9 17:20:34 2014 +0800

    Issue an error for pattern synonyms defined in a local scope (#8757)

    This also fixes the internal crash when using pattern synonyms
    in GHCi (#8749)

    (cherry picked from commit e0a55415545074bc7a757462624079f54f7785e2)

commit 96f711b4597f2cf704a226113760ab514b9554d3
Author: Richard Eisenberg <eir@cis.upenn.edu>
Date:   Sat Feb 8 22:09:12 2014 -0500

    Fix #8631.

    This patch allows turning on ImpredicativeTypes while type-checking
    the code generated by GeneralizedNewtypeDeriving. It does this
    by adding a field ib_extensions to InstBindings, informing the
    type-checker what extensions should be enabled while type-checking
    the instance.

    (cherry picked from commit 674c969c240632da70ed2928fa30c20a9a52e5dc)

commit bc62cdd88a4b61088632ab53314b4685d0a48304
Author: Richard Eisenberg <eir@cis.upenn.edu>
Date:   Fri Feb 7 17:24:07 2014 -0500

    Fix #8706, documenting that type operators are not promoted.

    (cherry picked from commit 218dead0d85a136b5d5648e4d6c4c9cc9467eb45)

commit 6e3feefb818ae04ff326ba7815ccaf4aa9d3f2ab
Author: Joachim Breitner <mail@joachim-breitner.de>
Date:   Fri Feb 7 17:59:29 2014 +0000

    In deepSplitCprType_maybe, be more forgiving

    the ConTag may be out of range (e.g. if the type constructor is imported
    via SOURCE and we don't know any of its data constructors); just return
    Nothing without complaining in that case. This fixes #8743.

    (cherry picked from commit 312686c172eefb74237c8a61e2cca1b2af7459c1)

commit 29205476afba5e2f72e233ede981055283a52d65
Author: Joachim Breitner <mail@joachim-breitner.de>
Date:   Fri Feb 7 17:56:18 2014 +0000

    Add test case for #8743

    which only occurs when the instance being compiled is also present from
    a .hs-boot file.

    (cherry picked from commit c3ff5f29c80680a09c7779aee2535fa64b880cd9)

commit 8ac9e061cb4e4b266f9e2ff4f2cfe3bab85ffd7a
Author: Austin Seipp <austin@well-typed.com>
Date:   Thu Feb 6 22:58:30 2014 -0600

    Remove ios_HOST check for GCTDecl.h

    Following 298a25bdf and #8722 as Peter mentioned, this probably isn't
    needed anymore.

    Signed-off-by: Austin Seipp <austin@well-typed.com>
    (cherry picked from commit b4eb630c7480bc56c673a463f274aec18e237e8c)

commit 744493db1399e9db02b151fc79066f005f5a7e46
Author: Peter Trommler <ptrommler@acm.org>
Date:   Thu Feb 6 22:57:34 2014 -0600

    Fix __thread detection (#8722)

    Signed-off-by: Austin Seipp <austin@well-typed.com>

    (cherry picked from commit 298a25bdfd02bb591fde2dd0590bd7af81a91b94)

commit be6d9df23794372e9ec83b5526be27d15ed5b10a
Author: Krzysztof Gogolewski <krz.gogolewski@gmail.com>
Date:   Thu Feb 6 23:15:50 2014 +0100

    Tweak documentation of monomorphism restriction

    Suggested by Gabor Greif on ghc-devs

    (cherry picked from commit 41cfc96b55a4a44953fc20aa72ef50789ba6ceab)

commit f543e2f88b2d91cf3b90fbf61fab2c7c6bf0541d
Author: Krzysztof Gogolewski <krz.gogolewski@gmail.com>
Date:   Wed Feb 5 20:40:13 2014 +0100

    Mention that MR is off by default in GHCi in documentation

    (cherry picked from commit 5bda0d08d8fec86433917b65a93836d2372a5b5c)

commit 5541c0a1101d80ea4f53bb034ecf10e494cffbec
Author: Edward Z. Yang <ezyang@cs.stanford.edu>
Date:   Tue Feb 4 15:59:55 2014 -0800

    Fix #8698 by properly handling long section names and reenabling .ctors handling

    Our old function for searching for sections could only deal
    with section names that were eight bytes or shorter; this
    patch adds support for long section names.

    Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>

    (cherry picked from commit 40ce20357fb6266471a53cec7de0a810a3070f36)

commit 93cf5149cc296ab245a2b035a7e823f879713c59
Author: Krzysztof Gogolewski <krz.gogolewski@gmail.com>
Date:   Tue Feb 4 23:42:00 2014 +0100

    Tweak holes documentation

    type holes -> typed holes, reorder, minor changes

    Signed-off-by: Austin Seipp <aseipp@pobox.com>

    (cherry picked from commit 2f6d36f64730f044bb038e2d3da2b97ee571d763)

commit 6c349a4c72a7795a982f3fd68364f21ae7972645
Author: Herbert Valerio Riedel <hvr@gnu.org>
Date:   Sun Feb 2 12:08:06 2014 +0100

    Add test-case for #8726

    This tests various properties expected to hold for
    quotRem, divMod, div, mod, quot, and rem.

    Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>

    (cherry picked from commit 5f64b2c6e8f1799d7015098598f7d6e826707e6c)

commit 86ffdef3db704f6963fb34940199b1a1d2281637
Author: Kyrill Briantsev <kyrab@mail.ru>
Date:   Tue Feb 4 05:00:33 2014 -0600

    Final fix to #7134 (and #8717 as well.)

    Signed-off-by: Austin Seipp <austin@well-typed.com>

    (cherry picked from commit 2b33f6e8045fcd00f19883bb5e8895cbaf1bf81e)