Skip to content

Commit

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

changelog_begin
changelog_end
  • Loading branch information
akrmn committed Nov 2, 2021
1 parent 92495b0 commit 1804c9d
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 = "298307c7f7d0778d48a350a996f29ddebbe0f51d"
GHCIDE_SHA256 = "aae5a14f94f4d2fc6a39f670f2bd9ddba38488adaa3c7e544b5abf54911afa63"
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 1804c9d

Please sign in to comment.