Commit 1d415771 authored by Duncan Coutts's avatar Duncan Coutts Committed by Duncan Coutts
Browse files

Add a check for -fdefer-type-errors

It should not be used in packages ready for being distributed.
parent 6192dbf4
......@@ -586,6 +586,11 @@ checkGhcOptions pkg =
++ "is using the FFI incorrectly and will probably not work with GHC "
++ "6.10 or later."
, checkFlags ["-fdefer-type-errors"] $
PackageDistInexcusable $
"'ghc-options: -fdefer-type-errors' is fine during development but "
++ "is not appropriate for a distributed package."
, checkFlags ["-fhpc"] $
PackageDistInexcusable $
"'ghc-options: -fhpc' is not appropriate for a distributed package."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment