Warn about missed specialisations for imports
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 5 Aug 2015 12:37:18 +0000 (13:37 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Wed, 5 Aug 2015 13:25:24 +0000 (14:25 +0100)
commita4261549afaee56b00fbea1b4bc1a07c95e60929
tree37623ab8542a364e0e680ccf8afd9d2f7fdd4458
parent617f6966b5aaedd3ecd3f4c0f3735253187b7ff5
Warn about missed specialisations for imports

This change was provoked by Trac #10720, where a missing
INLINEABLE pragma gave very poor performance.

The change is to warn when an imported function is not specialised
in a situation where the user expects it to be.

New flags
  -fwarn-missed-specialisations
  -fwarn-all-missed-specialisations

Documented in user manual.
See Note [Warning about missed specialisations]
compiler/main/DynFlags.hs
compiler/specialise/Specialise.hs
docs/users_guide/using.xml
testsuite/tests/simplCore/should_compile/T5359b.stderr