Safe Haskell doesn't report all reasons why safe inference fails
When using -fwarn-unsafe
to report why safe inference has failed Safe Haskell doesn't report bad language extensions.
e.g this program is unsafe due to the use of Template Haskell:
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fwarn-unsafe #-}
module A where
a :: Int
a = 1
but the output is:
UnsafeInfered.hs:2:16: Warning:
`UnsafeInfered' has been infered as unsafe!
Reason:
Trac metadata
Trac field | Value |
---|---|
Version | 7.4.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |