Add -fno-safe-haskell flag
authorMatthew Pickering <matthewtpickering@gmail.com>
Sat, 8 Dec 2018 04:25:20 +0000 (23:25 -0500)
committerBen Gamari <ben@smart-cactus.org>
Sat, 8 Dec 2018 04:25:30 +0000 (23:25 -0500)
commit45e98f64e82f6ff16dc3e437c3031b9d315f1313
tree16e45c4a587b8108623b900522b79621912815bb
parent04caa935ac22bd2bd1a254f26df9dca4ee6abdd1
Add -fno-safe-haskell flag

This flag can be set to turn off the Safe Haskell checks.

Whether a module is marked Safe/Unsafe/Trustworthy is ignored when
this flag to set.

Reviewers: bgamari, tdammers

Reviewed By: tdammers

Subscribers: rwbarton, carter

GHC Trac Issues: #15920

Differential Revision: https://phabricator.haskell.org/D5360
compiler/main/DynFlags.hs
compiler/main/HscMain.hs
compiler/main/HscTypes.hs
docs/users_guide/safe_haskell.rst
testsuite/tests/safeHaskell/flags/SafeIgnore.hs [new file with mode: 0644]
testsuite/tests/safeHaskell/flags/SafeIgnoreA.hs [new file with mode: 0644]
testsuite/tests/safeHaskell/flags/all.T