Skip to content

Commit

Permalink
Use upstream rules_haskell.
Browse files Browse the repository at this point in the history
  • Loading branch information
judah committed Jan 27, 2020
1 parent d946c54 commit 33f879e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -21,9 +21,9 @@ $ cp --no-preserve=mode bazel-bin/hrepl/hrepl ~/.local/bin
$ chmod +x ~/.local/bin/hrepl
```

You should also specify a patched verson of `rules_haskell` in your project's
`WORKSPACE` file, pointing at the `hrepl` branch of
`https://github.com/judah/rules_haskell`.
You should also use a recent enough verson of `rules_haskell` in your
project's `WORKSPACE` file. (See this repository's `WORKSPACE` file for an
example.)

Then, to load one or more targets in the interpreter, run `hrepl` within
your own Bazel project. You may specify the Bazel label(s) of any Haskell libraries,
Expand Down
15 changes: 3 additions & 12 deletions WORKSPACE
Expand Up @@ -5,9 +5,9 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")

git_repository(
name = "rules_haskell",
remote = "https://github.com/judah/rules_haskell",
commit = "f9b4c926857af98789aff14d81a1bb8ca04829ba",
shallow_since = "1579629957 -0800",
remote = "https://github.com/tweag/rules_haskell",
commit = "c1625027dd72c6aa17c8b48c176e7a6a787d406e",
shallow_since = "1580119964 -0800",
)
load("@rules_haskell//haskell:repositories.bzl", "rules_haskell_dependencies")
rules_haskell_dependencies()
Expand Down Expand Up @@ -61,15 +61,6 @@ stack_snapshot(
],
)

http_archive(
name = "com_google_protobuf",
strip_prefix = "protobuf-3.11.1",
sha256 = "20e55e7dc9ebbb5800072fff25fd56d7c0a168493ef4652e78910566fa6b45f5",
urls = ["https://github.com/google/protobuf/archive/v3.11.1.zip"],
)
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
protobuf_deps()

register_toolchains(
":proto_toolchain",
)
Expand Down

0 comments on commit 33f879e

Please sign in to comment.