
#12463: SPECIALIZABLE pragma? -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Type: feature request | Status: new Priority: low | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Inlining Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by MikolajKonarski): I'd like to point out that the combination of `-fexpose-all-unfoldings` plus `-fspecialise-aggressively` has the effect of `INLINEABLE` on all overloaded functions in the program. This is much less fine grained than the proposed `SPECIALISE_RECURSIVE`, but it works for me at the cost of much higher compilation times (e.g., travis now refuses to compile my program with `-O2 due to memory constraints). I wish somebody told me about that trick before I added my 600 `INLINABLE` and started writing corresponding 600 `SCC` pragmas by hand, so I'm sharing here. :) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12463#comment:19 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler