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)
committerBen Gamari <ben@well-typed.com>
Tue, 4 Jun 2019 03:42:46 +0000 (23:42 -0400)
commitf8d24178f30b7837b35a9ea328bc6f520092ff08
tree4a7f09d5258b2133b2cb84eab8109539e3d059c7
parent605869c7b776ce6071a31ff447998b081e0354ed
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.8.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