... | ... | @@ -119,7 +119,7 @@ g x = if (...big...) then 1 else 2 |
|
|
```
|
|
|
and now `g` won't be inlined. Conclusion:
|
|
|
* if you are relying on a function to be inlined, use an INLINE pragma
|
|
|
* if you are relying on a function to be specialised, use an SPECIALISEA pragma
|
|
|
* if you are relying on a function to be specialised, use an SPECIALISE pragma
|
|
|
|
|
|
Do not rely on heuristics. And add a comment to explain the importance of the pragma.
|
|
|
|
... | ... | |