Fix the SPECIALISE error in the haddock invocation of validate
authorSimon Peyton Jones <simonpj@microsoft.com>
Mon, 13 Jun 2011 12:37:47 +0000 (13:37 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Mon, 13 Jun 2011 12:37:47 +0000 (13:37 +0100)
commit1bf40a4b38180b8b1c1bdaf4919bc327d5b27abe
tree2e6617f2e5d205a2cdf70215573ff435e1e6856d
parenta8defd8a5c2efbff5093717449afe73abb5cd8f7
Fix the SPECIALISE error in the haddock invocation of validate

Specifically
 - Turn the error
       "You cannot SPECIALISE f because it is not INLINEABLE"
   into a warning

 - More importantly, suppress it altogether when
     HscTarget = HscNothing or HscInterpreted
   because then we aren't going to be generating unfoldings
compiler/typecheck/TcBinds.lhs