• Oleg Grenrus's avatar
    Add -Winferred-safe-imports warning · a863c44f
    Oleg Grenrus authored
    This commit partly reverts e69619e9
    commit by reintroducing Sf_SafeInferred SafeHaskellMode.
    
    We preserve whether module was declared or inferred Safe.  When
    declared-Safe module imports inferred-Safe, we warn.  This inferred
    status is volatile, often enough it's a happy coincidence, something
    which cannot be relied upon. However, explicitly Safe or Trustworthy
    packages won't accidentally become Unsafe.
    
    Updates haddock submodule.
    a863c44f
HscMain.hs 77.8 KB