-
Notifications
You must be signed in to change notification settings - Fork 1
/
WORKSPACE
72 lines (64 loc) · 1.6 KB
/
WORKSPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
workspace(name = "zzbot")
# Load the repository rule to download an http archive.
load(
"@bazel_tools//tools/build_defs/repo:http.bzl",
"http_archive"
)
# Download rules_haskell and make it accessible as "@rules_haskell".
http_archive(
name = "rules_haskell",
strip_prefix = "rules_haskell-0.12",
urls = ["https://github.com/tweag/rules_haskell/archive/v0.12.tar.gz"],
sha256 = "56a8e6337df8802f1e0e7d2b3d12d12d5d96c929c8daecccc5738a0f41d9c1e4",
)
load(
"@rules_haskell//haskell:repositories.bzl",
"rules_haskell_dependencies",
)
# Setup all Bazel dependencies required by rules_haskell.
rules_haskell_dependencies()
load(
"@rules_haskell//haskell:toolchain.bzl",
"rules_haskell_toolchains",
)
# Download a GHC binary distribution from haskell.org and register it as a toolchain.
rules_haskell_toolchains(version = "8.6.5")
load(
"@rules_haskell//haskell:cabal.bzl",
"stack_snapshot"
)
stack_snapshot(
name = "stackage",
packages = [
"async",
"base",
"aeson",
"blaze-html",
"bytestring",
"concurrent-extra",
"containers",
"directory",
"either",
"extra",
"filepath",
"generic-random",
"hspec",
"lens",
"megaparsec",
"mtl",
"optparse-applicative",
"prettyprinter",
"prettyprinter-ansi-terminal",
"process",
"QuickCheck",
"safe",
"scotty",
"sqlite-simple",
"temporary",
"text",
"time",
"validation",
"xml"
],
snapshot = "lts-14.11"
)