[commit: ghc] master: Add in `-fwarn-trustworthy-safe` flag. (1f8b4ee)

git at git.haskell.org git at git.haskell.org
Thu Nov 13 00:09:32 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/1f8b4ee074b4d9e3d847b3139dc89fff1bb5d2e6/ghc

>---------------------------------------------------------------

commit 1f8b4ee074b4d9e3d847b3139dc89fff1bb5d2e6
Author: David Terei <code at davidterei.com>
Date:   Fri Nov 7 14:11:19 2014 -0800

    Add in `-fwarn-trustworthy-safe` flag.
    
    This warns when a module marked as `-XTrustworthy` could have been
    inferred as safe instead.


>---------------------------------------------------------------

1f8b4ee074b4d9e3d847b3139dc89fff1bb5d2e6
 compiler/main/DynFlags.hs                          |  14 +-
 compiler/main/HscMain.hs                           | 149 +++++++++++++--------
 .../tests/safeHaskell/check/pkg01/ImpSafe01.hs     |   2 +-
 .../tests/safeHaskell/check/pkg01/ImpSafe02.hs     |   2 +-
 .../tests/safeHaskell/check/pkg01/ImpSafe03.hs     |   8 ++
 .../tests/safeHaskell/check/pkg01/ImpSafe03.stderr |   4 +
 .../tests/safeHaskell/check/pkg01/ImpSafe03_A.hs   |   8 ++
 .../check/pkg01/{ImpSafe01.hs => ImpSafe04.hs}     |   7 +-
 .../tests/safeHaskell/check/pkg01/ImpSafe04.stderr |   4 +
 testsuite/tests/safeHaskell/check/pkg01/all.T      |  11 +-
 .../tests/safeHaskell/safeInfered/SafeWarn01.hs    |  11 ++
 .../safeHaskell/safeInfered/SafeWarn01.stderr      |   3 +
 .../safeHaskell/safeInfered/TrustworthySafe01.hs   |   9 ++
 .../safeHaskell/safeInfered/TrustworthySafe02.hs   |  10 ++
 .../safeInfered/TrustworthySafe02.stderr           |   3 +
 .../safeHaskell/safeInfered/TrustworthySafe04.hs   |  10 ++
 .../tests/safeHaskell/safeInfered/UnsafeWarn01.hs  |  11 ++
 .../safeHaskell/safeInfered/UnsafeWarn01.stderr    |   7 +
 .../tests/safeHaskell/safeInfered/UnsafeWarn02.hs  |  10 ++
 .../safeHaskell/safeInfered/UnsafeWarn02.stderr    |   6 +
 .../tests/safeHaskell/safeInfered/UnsafeWarn03.hs  |  12 ++
 .../safeHaskell/safeInfered/UnsafeWarn03.stderr    |   7 +
 .../tests/safeHaskell/safeInfered/UnsafeWarn04.hs  |  12 ++
 .../safeHaskell/safeInfered/UnsafeWarn04.stderr    |   7 +
 .../tests/safeHaskell/safeInfered/UnsafeWarn05.hs  |  19 +++
 .../safeHaskell/safeInfered/UnsafeWarn05.stderr    |  14 ++
 .../tests/safeHaskell/safeInfered/UnsafeWarn06.hs  |  12 ++
 .../safeHaskell/safeInfered/UnsafeWarn06.stderr    |   7 +
 .../tests/safeHaskell/safeInfered/UnsafeWarn07.hs  |  13 ++
 .../safeHaskell/safeInfered/UnsafeWarn07.stderr    |   7 +
 testsuite/tests/safeHaskell/safeInfered/all.T      |  17 +++
 .../tests/safeHaskell/safeLanguage/SafeLang18.hs   |  14 ++
 testsuite/tests/safeHaskell/safeLanguage/all.T     |   2 +
 .../tests/safeHaskell/unsafeLibs/BadImport08.hs    |   2 +-
 .../safeHaskell/unsafeLibs/BadImport08.stderr      |   2 +-
 .../unsafeLibs/{BadImport08.hs => BadImport09.hs}  |   2 +-
 .../safeHaskell/unsafeLibs/BadImport09.stderr      |   4 +
 testsuite/tests/safeHaskell/unsafeLibs/all.T       |   1 +
 38 files changed, 377 insertions(+), 66 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 1f8b4ee074b4d9e3d847b3139dc89fff1bb5d2e6


More information about the ghc-commits mailing list