about summary refs log tree commit diff
path: root/third_party/bazel/rules_haskell/tests/haskell_proto_library
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/bazel/rules_haskell/tests/haskell_proto_library')
-rw-r--r--third_party/bazel/rules_haskell/tests/haskell_proto_library/BUILD.bazel78
-rw-r--r--third_party/bazel/rules_haskell/tests/haskell_proto_library/Bar.hs8
-rw-r--r--third_party/bazel/rules_haskell/tests/haskell_proto_library/address.proto11
-rw-r--r--third_party/bazel/rules_haskell/tests/haskell_proto_library/person.proto16
-rw-r--r--third_party/bazel/rules_haskell/tests/haskell_proto_library/stripped_address.proto10
-rw-r--r--third_party/bazel/rules_haskell/tests/haskell_proto_library/stripped_zip_code.proto7
-rw-r--r--third_party/bazel/rules_haskell/tests/haskell_proto_library/zip_code.proto7
7 files changed, 0 insertions, 137 deletions
diff --git a/third_party/bazel/rules_haskell/tests/haskell_proto_library/BUILD.bazel b/third_party/bazel/rules_haskell/tests/haskell_proto_library/BUILD.bazel
deleted file mode 100644
index f5f8762b3aff..000000000000
--- a/third_party/bazel/rules_haskell/tests/haskell_proto_library/BUILD.bazel
+++ /dev/null
@@ -1,78 +0,0 @@
-load(
-    "@io_tweag_rules_haskell//haskell:haskell.bzl",
-    "haskell_doc",
-    "haskell_library",
-    "haskell_proto_library",
-)
-
-package(default_testonly = 1)
-
-proto_library(
-    name = "zip_code_proto",
-    srcs = ["zip_code.proto"],
-)
-
-proto_library(
-    name = "address_proto",
-    srcs = ["address.proto"],
-    deps = [":zip_code_proto"],
-)
-
-proto_library(
-    name = "person_proto",
-    srcs = ["person.proto"],
-    deps = [
-        ":address_proto",
-        "@com_google_protobuf//:timestamp_proto",
-    ],
-)
-
-proto_library(
-    name = "stripped_zip_code_proto",
-    srcs = ["stripped_zip_code.proto"],
-    strip_import_prefix = "/tests/haskell_proto_library/",
-)
-
-proto_library(
-    name = "stripped_address_proto",
-    srcs = ["stripped_address.proto"],
-    strip_import_prefix = "/tests/haskell_proto_library/",
-    deps = [":stripped_zip_code_proto"],
-)
-
-haskell_proto_library(
-    name = "address_haskell_proto",
-    tags = ["requires_hackage"],
-    deps = [":address_proto"],
-)
-
-haskell_proto_library(
-    name = "stripped_address_haskell_proto",
-    tags = ["requires_hackage"],
-    deps = [":stripped_address_proto"],
-)
-
-haskell_proto_library(
-    name = "person_haskell_proto",
-    tags = ["requires_hackage"],
-    deps = [":person_proto"],
-)
-
-haskell_library(
-    name = "hs-lib",
-    srcs = ["Bar.hs"],
-    tags = ["requires_hackage"],
-    visibility = ["//visibility:public"],
-    deps = [
-        ":address_haskell_proto",
-        ":person_haskell_proto",
-        ":stripped_address_haskell_proto",
-        "//tests/hackage:base",
-    ],
-)
-
-haskell_doc(
-    name = "docs",
-    tags = ["requires_hackage"],
-    deps = [":hs-lib"],
-)
diff --git a/third_party/bazel/rules_haskell/tests/haskell_proto_library/Bar.hs b/third_party/bazel/rules_haskell/tests/haskell_proto_library/Bar.hs
deleted file mode 100644
index fa95bf088c91..000000000000
--- a/third_party/bazel/rules_haskell/tests/haskell_proto_library/Bar.hs
+++ /dev/null
@@ -1,8 +0,0 @@
-module Bar (bar) where
-
-import Proto.StrippedAddress
-import Proto.Tests.HaskellProtoLibrary.Person
-import Proto.Tests.HaskellProtoLibrary.Person_Fields
-
-bar :: Int
-bar = 5
diff --git a/third_party/bazel/rules_haskell/tests/haskell_proto_library/address.proto b/third_party/bazel/rules_haskell/tests/haskell_proto_library/address.proto
deleted file mode 100644
index d81642d8bcd4..000000000000
--- a/third_party/bazel/rules_haskell/tests/haskell_proto_library/address.proto
+++ /dev/null
@@ -1,11 +0,0 @@
-syntax = "proto3";
-
-package demo; // Required to generate valid code.
-
-// Always import protos with a full path relative to the WORKSPACE file.
-import "tests/haskell_proto_library/zip_code.proto";
-
-message Address {
-  string city = 1;
-  ZipCode zip_code = 2;
-}
diff --git a/third_party/bazel/rules_haskell/tests/haskell_proto_library/person.proto b/third_party/bazel/rules_haskell/tests/haskell_proto_library/person.proto
deleted file mode 100644
index 95bf3524f819..000000000000
--- a/third_party/bazel/rules_haskell/tests/haskell_proto_library/person.proto
+++ /dev/null
@@ -1,16 +0,0 @@
-syntax = "proto3";
-
-package demo; // Required to generate valid code.
-
-// Always import protos with a full path relative to the WORKSPACE file.
-import "tests/haskell_proto_library/address.proto";
-
-import "google/protobuf/timestamp.proto";
-
-message Person {
-  string name = 1;
-  int32 id = 2;
-  string email = 3;
-  Address address = 4;
-  google.protobuf.Timestamp timestamp = 5;
-}
diff --git a/third_party/bazel/rules_haskell/tests/haskell_proto_library/stripped_address.proto b/third_party/bazel/rules_haskell/tests/haskell_proto_library/stripped_address.proto
deleted file mode 100644
index 5b5ce47be83a..000000000000
--- a/third_party/bazel/rules_haskell/tests/haskell_proto_library/stripped_address.proto
+++ /dev/null
@@ -1,10 +0,0 @@
-syntax = "proto3";
-
-package demo; // Required to generate valid code.
-
-import "stripped_zip_code.proto";
-
-message StrippedAddress {
-  string city = 1;
-  StrippedZipCode zip_code = 2;
-}
diff --git a/third_party/bazel/rules_haskell/tests/haskell_proto_library/stripped_zip_code.proto b/third_party/bazel/rules_haskell/tests/haskell_proto_library/stripped_zip_code.proto
deleted file mode 100644
index 690d7c9d99cc..000000000000
--- a/third_party/bazel/rules_haskell/tests/haskell_proto_library/stripped_zip_code.proto
+++ /dev/null
@@ -1,7 +0,0 @@
-syntax = "proto3";
-
-package demo; // Required to generate valid code.
-
-message StrippedZipCode {
-  string code = 1;
-}
diff --git a/third_party/bazel/rules_haskell/tests/haskell_proto_library/zip_code.proto b/third_party/bazel/rules_haskell/tests/haskell_proto_library/zip_code.proto
deleted file mode 100644
index e72578cf2178..000000000000
--- a/third_party/bazel/rules_haskell/tests/haskell_proto_library/zip_code.proto
+++ /dev/null
@@ -1,7 +0,0 @@
-syntax = "proto3";
-
-package demo; // Required to generate valid code.
-
-message ZipCode {
-  string code = 1;
-}