Primops in RULES generate warnings
import GHC.Prim
{-# RULES
"int2Word#/word2Int#" forall x. int2Word# (word2Int# x) = x
#-}
produces the following warning:
Rule "int2Word#/word2Int#" may never fire
because `int2Word#' might inline first
Probable fix: add an INLINE[n] or NOINLINE[n] pragma on `int2Word#'
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.7 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |