Changes to ghc(6)

Changes to ghc:
commit 8404e800a35380281a218c78a6799ed6836b6fad
Author: Austin Seipp <austin@well-typed.com>
Date:   Tue Apr 29 09:09:25 2014 -0500

    rts: Fix memory leak when loading ELF objects

    Issue discovered by Coverity Scan, CID 43168.

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

commit 652789e77d84f95120360211281f3771ae3e8e17
Author: Austin Seipp <austin@well-typed.com>
Date:   Tue Apr 29 09:05:38 2014 -0500

    rts: Fix leak of file archive handle

    Issue discovered by Coverity Scan, CID 43171.

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

commit bd6eea9f405ad195bcc70d7738bc33c6170cdc94
Author: Gergely Risko <errge@nilcons.com>
Date:   Fri Apr 25 15:39:26 2014 +0200

    Add a comprehensive test for using Annotations from TH

    The provided tests test both annotation generation and reification
    from Template Haskell.  Both --make and compilation via separate
    units (ghc -c) are tested.

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

commit eddbbd1a0ab819aca339237ae97e6dc5d54d4817
Author: Gergely Risko <errge@nilcons.com>
Date:   Fri Apr 25 15:35:58 2014 +0200

    Fix annotation reification for home package modules

    The reifyAnnotation method of the Q monad correctly gathered annotations
    from TCG and EPS.  Unfortunately it didn't look into the Home Package
    Table.  This resulted in annotations not being found if they are in the
    same package as the splice that is reifying and ghc --make is used for
    compilation management.  Fix this by using the already existing
    prepareAnnotations method from HscTypes.lhs that correctly searches
    in HPT and EPS both.

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

commit 3fb1a0887d18cdddd6ff1691e80f3143fd0eedba
Author: Simon Peyton Jones <simonpj@microsoft.com>
Date:   Tue Apr 8 16:28:56 2014 +0100

    Test Trac #8963

    (cherry picked from commit cc3ccf9f47c7f4684cdd2b08d0e2acf50b69bc18)

    Conflicts:
    	testsuite/tests/deriving/should_compile/all.T

commit 427dd3bb748f241c555b331e99213b9f31be8d2a
Author: Simon Peyton Jones <simonpj@microsoft.com>
Date:   Tue Apr 8 16:20:11 2014 +0100

    Allow a longer demand signature than arity

    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.

    (cherry picked from commit 848f595266268f578480ceb4ab1ce4938611c97e)