Have GHCi use object code for UnboxedTuples modules #15454
authorMichael Sloan <mgsloan@gmail.com>
Thu, 14 Mar 2019 06:04:41 +0000 (23:04 -0700)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Wed, 22 May 2019 20:37:57 +0000 (16:37 -0400)
commit21272670581608b96a85cfb942af81ada3cfd450
tree703a1256e31868e0878706b9b60781add68ed2c0
parent0dc7985663efa1739aafb480759e2e2e7fca2a36
Have GHCi use object code for UnboxedTuples modules #15454

The idea is to automatically enable -fobject-code for modules that use
UnboxedTuples, along with all the modules they depend on. When looking
into how to solve this, I was pleased to find that there was already
highly similar logic for enabling code generation when -fno-code is
specified but TemplateHaskell is used.

The state before this patch was that if you used unboxed tuples then you
had to enable `-fobject-code` globally rather than on a per module
basis.
compiler/main/GhcMake.hs
docs/users_guide/8.10.1-notes.rst
docs/users_guide/ghci.rst
testsuite/tests/ghci/prog014/prog014.stderr [deleted file]
testsuite/tests/ghci/should_fail/T14608.stderr [deleted file]
testsuite/tests/ghci/should_fail/all.T
testsuite/tests/ghci/should_run/T14608.hs [moved from testsuite/tests/ghci/should_fail/T14608.hs with 100% similarity]
testsuite/tests/ghci/should_run/T14608.script [moved from testsuite/tests/ghci/should_fail/T14608.script with 100% similarity]
testsuite/tests/ghci/should_run/all.T