diff options
author | Vincent Ambo <tazjin@google.com> | 2019-08-15T15·11+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2019-08-15T15·11+0100 |
commit | 128875b501bc2989617ae553317b80faa556d752 (patch) | |
tree | 9b32d12123801179ebe900980556486ad4803482 /third_party/bazel/rules_haskell/examples/README.md | |
parent | a20daf87265a62b494d67f86d4a5199f14394973 (diff) |
chore: Remove remaining Bazel-related files r/31
Diffstat (limited to 'third_party/bazel/rules_haskell/examples/README.md')
-rw-r--r-- | third_party/bazel/rules_haskell/examples/README.md | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/third_party/bazel/rules_haskell/examples/README.md b/third_party/bazel/rules_haskell/examples/README.md deleted file mode 100644 index 7b477f547619..000000000000 --- a/third_party/bazel/rules_haskell/examples/README.md +++ /dev/null @@ -1,45 +0,0 @@ -# rule_haskell examples - -Examples of using [rules_haskell][rules_haskell], the Bazel rule set -for building Haskell code. - -* [**vector:**](./vector/) shows how to build the `vector` package as - found on Hackage, using a Nix provided compiler toolchain. -* [**rts:**](./rts/) demonstrates foreign exports and shows how to - link against GHC's RTS library, i.e. `libHSrts.so`. - -## **Important** - -Run all commands from the root of `rules_haskell`. -If you `cd examples/`, bazel *will* [break on -you](https://github.com/tweag/rules_haskell/issues/740). -This is a current problem with bazel workspaces. - -## Root Workspace - -Build everything in the root workspace with; - -``` -$ bazel build @io_tweag_rules_haskell_examples//... -``` - -Show every target of the vector example; - -``` -$ bazel query @io_tweag_rules_haskell_examples//vector/... -@io_tweag_rules_haskell_examples//vector:vector -@io_tweag_rules_haskell_examples//vector:semigroups -@io_tweag_rules_haskell_examples//vector:primitive -@io_tweag_rules_haskell_examples//vector:ghc-prim -@io_tweag_rules_haskell_examples//vector:deepseq -@io_tweag_rules_haskell_examples//vector:base -``` - -Build the two main Haskell targets; - -``` -$ bazel build @io_tweag_rules_haskell_examples//vector -$ bazel build @io_tweag_rules_haskell_examples//rts:add-one-hs -``` - -[rules_haskell]: https://github.com/tweag/rules_haskell |