[GHC] #13090: Expose all unfoldings of overloaded functions by default
GHC
ghc-devs at haskell.org
Mon Jan 9 09:55:33 UTC 2017
#13090: Expose all unfoldings of overloaded functions by default
-------------------------------------+-------------------------------------
Reporter: mpickering | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 8.2.1
Component: Compiler | Version: 8.0.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D2929
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by rwbarton):
I'm not sure I agree with either
* Users expect their overloaded functions to be specialised at call sites
or
* A more sensible default is to [copy the code of every overloaded
function into every module which uses it once for every time at which it
is used]
I would be more worried about the effects on program size and compile time
than on interface file size. Maybe instead an opt-in flag `-fexpose-all-
overloaded-unfoldings`?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13090#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list