Desugar static forms to makeStatic calls.
authorFacundo Domínguez <facundo.dominguez@tweag.io>
Mon, 9 Jan 2017 17:29:32 +0000 (14:29 -0300)
committerFacundo Domínguez <facundo.dominguez@tweag.io>
Fri, 13 Jan 2017 20:37:25 +0000 (17:37 -0300)
commit13a85211040f67977d2a2371f4087d1d2ebf4de4
tree1f0edd5ad5619966da1d631ac9458c617f591b73
parentdde63e00fcfd6baba6d06b8be80a8cd34cc86377
Desugar static forms to makeStatic calls.

Summary:
Using makeStatic instead of applications of the StaticPtr data
constructor makes possible linting core when unboxing strict
fields.

Test Plan: ./validate

Reviewers: simonpj, goldfire, austin, bgamari, hvr

Reviewed By: simonpj

Subscribers: RyanGlScott, mboes, thomie

Differential Revision: https://phabricator.haskell.org/D2930

GHC Trac Issues: #12622
16 files changed:
compiler/coreSyn/CoreLint.hs
compiler/coreSyn/CoreUtils.hs
compiler/coreSyn/MkCore.hs
compiler/deSugar/DsExpr.hs
compiler/main/StaticPtrTable.hs
compiler/main/TidyPgm.hs
compiler/prelude/PrelNames.hs
compiler/simplCore/SetLevels.hs
compiler/simplCore/SimplCore.hs
compiler/typecheck/TcExpr.hs
libraries/base/GHC/StaticPtr/Internal.hs [new file with mode: 0644]
libraries/base/base.cabal
testsuite/tests/codeGen/should_run/T12622.hs [new file with mode: 0644]
testsuite/tests/codeGen/should_run/T12622.stdout [new file with mode: 0644]
testsuite/tests/codeGen/should_run/T12622_A.hs [new file with mode: 0644]
testsuite/tests/codeGen/should_run/all.T