on master help sign in
Turn off -Woverlowed-literals in damlc (#375)

* Turn off -Woverlowed-literals in damlc This flag does not play well with location information obtained via `-ticky`. Also, the error message you get from overflowed literals suggests to use `-XNegativeLiterals`, which is a bad idea since it changes the meaning of `(-1)` from `\x -> x - 1` to `negate 1`. * Fix module name in test Co-Authored-By: martin-drhu-da <31696042+martin-drhu-da@users.noreply.github.com>

commit33b276c5e66619b540a00d7a0143e8b5e5c76554 authorMartin Huschenbett <31696042+martin-drhu-da@users.noreply.github.com> dateThu 11 Apr 2019, 13:52 (8 years ago) parent7574885
1 file changed+1−1
src/Development/IDE/UtilGHC.hs+1−1
src/Development/IDE/UtilGHC.hs+1−1
@@ -94,7 +94,6 @@ wOptsSet =
9494wOptsSetFatal :: [ WarningFlag ]
9595wOptsSetFatal =
9696 [ Opt_WarnMissingFields
97− , Opt_WarnOverflowedLiterals
9897 ]
9998
10099-- | Warning options unset for DAML compilation. Note that these can be modified
@@ -103,6 +102,7 @@ wOptsSetFatal =
103102wOptsUnset :: [ WarningFlag ]
104103wOptsUnset =
105104 [ Opt_WarnMissingMonadFailInstances -- failable pattern plus RebindableSyntax raises this error
105+ , Opt_WarnOverflowedLiterals -- this does not play well with -ticky and the error message is misleading
106106 ]
107107
108108