Ensure that -Werror converts parser warnings into errors (#11511)

closes #11399

changelog_begin
changelog_end
This commit is contained in:
Moisés Ackerman 2021-11-03 11:28:52 +01:00 committed by GitHub
parent bda35ca234
commit ac49d69e13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 2 deletions

View File

@ -17,8 +17,8 @@ load("@os_info//:os_info.bzl", "is_linux", "is_windows")
load("@dadew//:dadew.bzl", "dadew_tool_home")
load("@rules_haskell//haskell:cabal.bzl", "stack_snapshot")
GHCIDE_REV = "2ba61893ea07df26dcacf165a79dd6d0381a3dc8"
GHCIDE_SHA256 = "f3a2fb693d1e6d3beda542639de027a94ae3417fe483765510eceb2ad9ea2b29"
GHCIDE_REV = "e04b5386b3741b839eb5c3d2a2586fd2aa97229c"
GHCIDE_SHA256 = "1d27926e0ad3c2a9536f23b454875a385ecc766ae68ce48a0ec88d0867884b46"
JS_JQUERY_VERSION = "3.3.1"
JS_DGTABLE_VERSION = "0.5.2"
JS_FLOT_VERSION = "0.8.3"

View File

@ -0,0 +1,11 @@
-- Copyright (c) 2021, Digital Asset (Switzerland) GmbH and/or its affiliates.
-- All rights reserved.
{-# OPTIONS_GHC -Werror=missing-space-after-bang #-}
-- @ERROR range=11:3-11:5; perhaps you want to add a space after the bang for clarity
module ParserWerror where
(!) : a -> a -> ()
_ !_ = ()

View File

@ -0,0 +1,11 @@
-- Copyright (c) 2021, Digital Asset (Switzerland) GmbH and/or its affiliates.
-- All rights reserved.
{-# OPTIONS_GHC -Wno-error=missing-space-after-bang #-}
-- @WARN range=11:3-11:5; perhaps you want to add a space after the bang for clarity
module ParserWno_error where
(!) : a -> a -> ()
_ !_ = ()