Skip to content

Commit

Permalink
Ensure that -Werror converts parser warnings into errors (#11511)
Browse files Browse the repository at this point in the history
closes #11399

changelog_begin
changelog_end
  • Loading branch information
akrmn authored Nov 3, 2021
1 parent bda35ca commit ac49d69
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bazel-haskell-deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
11 changes: 11 additions & 0 deletions compiler/damlc/tests/daml-test-files/ParserWerror.daml
Original file line number Diff line number Diff line change
@@ -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 -> ()
_ !_ = ()
11 changes: 11 additions & 0 deletions compiler/damlc/tests/daml-test-files/ParserWno_error.daml
Original file line number Diff line number Diff line change
@@ -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 -> ()
_ !_ = ()

0 comments on commit ac49d69

Please sign in to comment.