Preprocess code before checking safety
Apparently GHC checks safety (as safe Haskell) before preprocessing. This is sometimes undesirable; for example:
#if __GLASGOW_HASKELL__ >= 702
import Foreign.Safe
#else
import Foreign
#endif
Not sure if preprocessing will break the design of safe Haskell, but if it won't I hope GHC can accept this code as safe.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.4.2 |
| Type | FeatureRequest |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |