From ca8475057da4bd12e37e15c99b3332ac5eb3bcc2 Mon Sep 17 00:00:00 2001 From: Patrick Thomson Date: Wed, 27 May 2020 14:18:21 -0400 Subject: [PATCH] formatting --- semantic-analysis/BUILD.bazel | 23 +++++++------- semantic-ast/BUILD.bazel | 23 +++++++------- semantic-core/BUILD.bazel | 30 ++++++++++-------- semantic-python/BUILD.bazel | 21 +++++++------ semantic-ruby/BUILD.bazel | 21 +++++++------ semantic-scope-graph/BUILD.bazel | 25 +++++++-------- semantic-source/BUILD.bazel | 52 ++++++++++++++++++-------------- semantic-tags/BUILD.bazel | 21 +++++++------ 8 files changed, 116 insertions(+), 100 deletions(-) diff --git a/semantic-analysis/BUILD.bazel b/semantic-analysis/BUILD.bazel index 82921308f..664697c05 100644 --- a/semantic-analysis/BUILD.bazel +++ b/semantic-analysis/BUILD.bazel @@ -1,30 +1,31 @@ # Set all target’s visibility in this package to "public". -package(default_visibility=["//visibility:public"]) +package(default_visibility = ["//visibility:public"]) # Load rules_haskell rules. load( "@rules_haskell//haskell:defs.bzl", - "haskell_toolchain_library", - "haskell_library", "haskell_binary", + "haskell_library", + "haskell_toolchain_library", ) - load( - "@rules_haskell//haskell:cabal.bzl", "haskell_cabal_binary", "haskell_cabal_library" + "@rules_haskell//haskell:cabal.bzl", + "haskell_cabal_binary", + "haskell_cabal_library", ) # haskell_toolchain_library can access builtin GHC packages # and assign them a bazel target name, so that they # can be referenced as dependencies. -haskell_toolchain_library(name="base") +haskell_toolchain_library(name = "base") # You can add your own libraries with haskell_library. haskell_library( - name="lib", - src_strip_prefix="src", - srcs=glob(["src/**/*.hs"]), - compiler_flags=["-XOverloadedStrings"], - deps=[ + name = "lib", + srcs = glob(["src/**/*.hs"]), + compiler_flags = ["-XOverloadedStrings"], + src_strip_prefix = "src", + deps = [ ":base", "//semantic-source:lib", "@stackage//:aeson", diff --git a/semantic-ast/BUILD.bazel b/semantic-ast/BUILD.bazel index 8b4a0513a..033a0e9b9 100644 --- a/semantic-ast/BUILD.bazel +++ b/semantic-ast/BUILD.bazel @@ -1,30 +1,31 @@ # Set all target’s visibility in this package to "public". -package(default_visibility=["//visibility:public"]) +package(default_visibility = ["//visibility:public"]) # Load rules_haskell rules. load( "@rules_haskell//haskell:defs.bzl", - "haskell_toolchain_library", - "haskell_library", "haskell_binary", + "haskell_library", + "haskell_toolchain_library", ) - load( - "@rules_haskell//haskell:cabal.bzl", "haskell_cabal_binary", "haskell_cabal_library" + "@rules_haskell//haskell:cabal.bzl", + "haskell_cabal_binary", + "haskell_cabal_library", ) # haskell_toolchain_library can access builtin GHC packages # and assign them a bazel target name, so that they # can be referenced as dependencies. -haskell_toolchain_library(name="base") +haskell_toolchain_library(name = "base") # You can add your own libraries with haskell_library. haskell_library( - name="lib", - src_strip_prefix="src", - srcs=glob(["src/**/*.hs"]), - compiler_flags=["-XOverloadedStrings"], - deps=[ + name = "lib", + srcs = glob(["src/**/*.hs"]), + compiler_flags = ["-XOverloadedStrings"], + src_strip_prefix = "src", + deps = [ ":base", "//semantic-source:lib", "@stackage//:Glob", diff --git a/semantic-core/BUILD.bazel b/semantic-core/BUILD.bazel index b57c15e98..710ba9019 100644 --- a/semantic-core/BUILD.bazel +++ b/semantic-core/BUILD.bazel @@ -1,29 +1,30 @@ # Set all target’s visibility in this package to "public". -package(default_visibility=["//visibility:public"]) +package(default_visibility = ["//visibility:public"]) # Load rules_haskell rules. load( "@rules_haskell//haskell:defs.bzl", - "haskell_toolchain_library", "haskell_library", "haskell_test", + "haskell_toolchain_library", ) - load( - "@rules_haskell//haskell:cabal.bzl", "haskell_cabal_binary", "haskell_cabal_library" + "@rules_haskell//haskell:cabal.bzl", + "haskell_cabal_binary", + "haskell_cabal_library", ) # haskell_toolchain_library can access builtin GHC packages # and assign them a bazel target name, so that they # can be referenced as dependencies. -haskell_toolchain_library(name="base") +haskell_toolchain_library(name = "base") # You can add your own libraries with haskell_library. haskell_library( - name="lib", - src_strip_prefix="src", - srcs=glob(["src/**/*.hs"]), - deps=[ + name = "lib", + srcs = glob(["src/**/*.hs"]), + src_strip_prefix = "src", + deps = [ ":base", "//semantic-analysis:lib", "//semantic-source:lib", @@ -41,10 +42,13 @@ haskell_library( ) haskell_test( - name="test", - src_strip_prefix="test", - srcs=glob(["test/*.hs", "test/Source/Test.hs"]), - deps=[ + name = "test", + srcs = glob([ + "test/*.hs", + "test/Source/Test.hs", + ]), + src_strip_prefix = "test", + deps = [ ":base", ":lib", "//semantic-analysis:lib", diff --git a/semantic-python/BUILD.bazel b/semantic-python/BUILD.bazel index 599d63717..8e93044fc 100644 --- a/semantic-python/BUILD.bazel +++ b/semantic-python/BUILD.bazel @@ -1,29 +1,30 @@ # Set all target’s visibility in this package to "public". -package(default_visibility=["//visibility:public"]) +package(default_visibility = ["//visibility:public"]) # Load rules_haskell rules. load( "@rules_haskell//haskell:defs.bzl", - "haskell_toolchain_library", - "haskell_library", "haskell_binary", + "haskell_library", + "haskell_toolchain_library", ) - load( - "@rules_haskell//haskell:cabal.bzl", "haskell_cabal_binary", "haskell_cabal_library" + "@rules_haskell//haskell:cabal.bzl", + "haskell_cabal_binary", + "haskell_cabal_library", ) # haskell_toolchain_library can access builtin GHC packages # and assign them a bazel target name, so that they # can be referenced as dependencies. -haskell_toolchain_library(name="base") +haskell_toolchain_library(name = "base") # You can add your own libraries with haskell_library. haskell_library( - name="lib", - src_strip_prefix="src", - srcs=glob(["src/**/*.hs"]), - deps=[ + name = "lib", + srcs = glob(["src/**/*.hs"]), + src_strip_prefix = "src", + deps = [ ":base", "//semantic-analysis:lib", "//semantic-ast:lib", diff --git a/semantic-ruby/BUILD.bazel b/semantic-ruby/BUILD.bazel index dce24765d..43ad7389d 100644 --- a/semantic-ruby/BUILD.bazel +++ b/semantic-ruby/BUILD.bazel @@ -1,29 +1,30 @@ # Set all target’s visibility in this package to "public". -package(default_visibility=["//visibility:public"]) +package(default_visibility = ["//visibility:public"]) # Load rules_haskell rules. load( "@rules_haskell//haskell:defs.bzl", - "haskell_toolchain_library", - "haskell_library", "haskell_binary", + "haskell_library", + "haskell_toolchain_library", ) - load( - "@rules_haskell//haskell:cabal.bzl", "haskell_cabal_binary", "haskell_cabal_library" + "@rules_haskell//haskell:cabal.bzl", + "haskell_cabal_binary", + "haskell_cabal_library", ) # haskell_toolchain_library can access builtin GHC packages # and assign them a bazel target name, so that they # can be referenced as dependencies. -haskell_toolchain_library(name="base") +haskell_toolchain_library(name = "base") # You can add your own libraries with haskell_library. haskell_library( - name="lib", - src_strip_prefix="src", - srcs=glob(["src/**/*.hs"]), - deps=[ + name = "lib", + srcs = glob(["src/**/*.hs"]), + src_strip_prefix = "src", + deps = [ ":base", "//semantic-analysis:lib", "//semantic-ast:lib", diff --git a/semantic-scope-graph/BUILD.bazel b/semantic-scope-graph/BUILD.bazel index 4f13fac39..8dc7ee786 100644 --- a/semantic-scope-graph/BUILD.bazel +++ b/semantic-scope-graph/BUILD.bazel @@ -1,30 +1,31 @@ # Set all target’s visibility in this package to "public". -package(default_visibility=["//visibility:public"]) +package(default_visibility = ["//visibility:public"]) # Load rules_haskell rules. load( "@rules_haskell//haskell:defs.bzl", - "haskell_toolchain_library", - "haskell_library", "haskell_binary", + "haskell_library", + "haskell_toolchain_library", ) - load( - "@rules_haskell//haskell:cabal.bzl", "haskell_cabal_binary", "haskell_cabal_library" + "@rules_haskell//haskell:cabal.bzl", + "haskell_cabal_binary", + "haskell_cabal_library", ) # haskell_toolchain_library can access builtin GHC packages # and assign them a bazel target name, so that they # can be referenced as dependencies. -haskell_toolchain_library(name="base") +haskell_toolchain_library(name = "base") # You can add your own libraries with haskell_library. haskell_library( - name="lib", - src_strip_prefix="src", - srcs=glob(["src/**/*.hs"]), - compiler_flags=["-XOverloadedStrings"], - deps=[ + name = "lib", + srcs = glob(["src/**/*.hs"]), + compiler_flags = ["-XOverloadedStrings"], + src_strip_prefix = "src", + deps = [ ":base", "//semantic-analysis:lib", "//semantic-source:lib", @@ -32,8 +33,8 @@ haskell_library( "@stackage//:algebraic-graphs", "@stackage//:containers", "@stackage//:fused-effects", - "@stackage//:generic-monoid", "@stackage//:generic-lens", + "@stackage//:generic-monoid", "@stackage//:hashable", "@stackage//:lens", "@stackage//:pathtype", diff --git a/semantic-source/BUILD.bazel b/semantic-source/BUILD.bazel index cf8a9a77b..40012c481 100644 --- a/semantic-source/BUILD.bazel +++ b/semantic-source/BUILD.bazel @@ -1,34 +1,35 @@ # Set all target’s visibility in this package to "public". -package(default_visibility=["//visibility:public"]) +package(default_visibility = ["//visibility:public"]) # Load rules_haskell rules. load( "@rules_haskell//haskell:defs.bzl", - "haskell_toolchain_library", "haskell_library", "haskell_test", + "haskell_toolchain_library", ) - load( - "@rules_haskell//haskell:cabal.bzl", "haskell_cabal_binary", "haskell_cabal_library" + "@rules_haskell//haskell:cabal.bzl", + "haskell_cabal_binary", + "haskell_cabal_library", ) load( "@rules_haskell//haskell:doctest.bzl", - "haskell_doctest_toolchain", "haskell_doctest", + "haskell_doctest_toolchain", ) # haskell_toolchain_library can access builtin GHC packages # and assign them a bazel target name, so that they # can be referenced as dependencies. -haskell_toolchain_library(name="base") +haskell_toolchain_library(name = "base") haskell_library( - name="lib", - src_strip_prefix="src", - srcs=glob(["src/**/*.hs"]), - compiler_flags=["-XOverloadedStrings"], - deps=[ + name = "lib", + srcs = glob(["src/**/*.hs"]), + compiler_flags = ["-XOverloadedStrings"], + src_strip_prefix = "src", + deps = [ ":base", "@stackage//:aeson", "@stackage//:bytestring", @@ -37,17 +38,20 @@ haskell_library( "@stackage//:filepath", "@stackage//:generic-monoid", "@stackage//:hashable", + "@stackage//:pathtype", "@stackage//:semilattices", "@stackage//:text", - "@stackage//:pathtype", ], ) haskell_test( - name="test", - src_strip_prefix="test", - srcs=["test/Test.hs", "test/Source/Test.hs"], - deps=[ + name = "test", + srcs = [ + "test/Source/Test.hs", + "test/Test.hs", + ], + src_strip_prefix = "test", + deps = [ ":base", ":lib", "@stackage//:hedgehog", @@ -58,13 +62,15 @@ haskell_test( ], ) - haskell_doctest( - name="doctest-lib", - modules=["Source.Range"], # exclude Baz and succeed - visibility=["//visibility:public"], - deps=[":lib-b"], + name = "doctest-lib", + modules = ["Source.Range"], # exclude Baz and succeed + visibility = ["//visibility:public"], + deps = [":lib-b"], ) - -haskell_doctest(name="doctest", deps=[":doctest-lib",], modules=["Source.Range"]) +haskell_doctest( + name = "doctest", + modules = ["Source.Range"], + deps = [":doctest-lib"], +) diff --git a/semantic-tags/BUILD.bazel b/semantic-tags/BUILD.bazel index 750c554bf..2971345b6 100644 --- a/semantic-tags/BUILD.bazel +++ b/semantic-tags/BUILD.bazel @@ -1,29 +1,30 @@ # Set all target’s visibility in this package to "public". -package(default_visibility=["//visibility:public"]) +package(default_visibility = ["//visibility:public"]) # Load rules_haskell rules. load( "@rules_haskell//haskell:defs.bzl", - "haskell_toolchain_library", - "haskell_library", "haskell_binary", + "haskell_library", + "haskell_toolchain_library", ) - load( - "@rules_haskell//haskell:cabal.bzl", "haskell_cabal_binary", "haskell_cabal_library" + "@rules_haskell//haskell:cabal.bzl", + "haskell_cabal_binary", + "haskell_cabal_library", ) # haskell_toolchain_library can access builtin GHC packages # and assign them a bazel target name, so that they # can be referenced as dependencies. -haskell_toolchain_library(name="base") +haskell_toolchain_library(name = "base") # You can add your own libraries with haskell_library. haskell_library( - name="lib", - src_strip_prefix="src", - srcs=glob(["src/**/*.hs"]), - deps=[ + name = "lib", + srcs = glob(["src/**/*.hs"]), + src_strip_prefix = "src", + deps = [ ":base", "//semantic-source:lib", "@stackage//:fused-effects",