forked from digital-asset/daml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ./fmt.sh check (digital-asset#5718)
* Fix ./fmt.sh check We accidentally introduced hlint lints when we added the compatibility workspace. The hlint code in ./fmt.sh correctly detects that there is a hint but then exits with 0 since it uses the exit code from `echo` rather than the one from `hlint`. The info that we printed with `echo` didn’t actually make any sense so I added a new comment as to why we run hlint here. This requires some setup changes so that the compatibility workspace gets the same Haskell flags since otherwise using the same hlint rules obviously does not make sense. Fixes digital-asset#5701 changelog_begin changelog_end * Update fmt.sh Co-Authored-By: Samir Talwar <samir.talwar@digitalasset.com> Co-authored-by: Samir Talwar <samir.talwar@digitalasset.com>
- Loading branch information
1 parent
bed6a2e
commit 7f2a950
Showing
11 changed files
with
91 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,35 @@ | ||
load( | ||
"@rules_haskell//haskell:defs.bzl", | ||
"haskell_binary", | ||
) | ||
load("@daml//bazel_tools:haskell.bzl", "da_haskell_binary") | ||
|
||
haskell_binary( | ||
da_haskell_binary( | ||
name = "runner", | ||
srcs = ["Main.hs"], | ||
deps = [ | ||
"@stackage//:base", | ||
"@stackage//:monad-loops", | ||
"@stackage//:network", | ||
"@stackage//:process", | ||
"@stackage//:safe-exceptions", | ||
"@stackage//:split", | ||
hackage_deps = [ | ||
"base", | ||
"monad-loops", | ||
"network", | ||
"process", | ||
"safe-exceptions", | ||
"split", | ||
], | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
haskell_binary( | ||
da_haskell_binary( | ||
name = "with-postgres", | ||
srcs = ["WithPostgres.hs"], | ||
data = [ | ||
"@postgresql_nix//:all", | ||
], | ||
hackage_deps = [ | ||
"base", | ||
"directory", | ||
"extra", | ||
"filepath", | ||
"process", | ||
"text", | ||
], | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"@stackage//:base", | ||
"@rules_haskell//tools/runfiles", | ||
"@stackage//:directory", | ||
"@stackage//:extra", | ||
"@stackage//:filepath", | ||
"@stackage//:process", | ||
"@stackage//:text", | ||
], | ||
visibility = ["//visibility:public"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters