You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- The easiest way to get this is to install it using (Linux/Mac) [ghcup](https://www.haskell.org/ghcup/) and issue `ghcup install 9.6.2`, followed by `ghcup install-cabal`.
55
+
- ghc may also be installed via brew, issuing `brew install ghc` and `brew install cabal-install`.
56
+
57
+
To build a Pact LSP binary:
58
+
59
+
```bash
60
+
# Only necessary if you haven't done this recently.
61
+
cabal v2-update
62
+
63
+
# Build the project.
64
+
cabal v2-build
65
+
```
66
+
67
+
This will install a runnable version of the Pact LSP, which you can run via:
68
+
69
+
```bash
70
+
cabal v2-exec pact-lsp
71
+
```
72
+
73
+
Alternatively, running `cabal v2-install exe:pact-lsp` inside this repository's root will install the binary to `~/.cabal/bin/`, which
74
+
you may need to add to your path. Then, you can call `pact-lsp` as-is.
75
+
76
+
77
+
#### Building with Nix
78
+
79
+
The fastest way to build and run Pact is to use the Nix package manager
80
+
which has binary caching capabilities that allow you to download pre-built
81
+
binaries for everything needed by Pact.
82
+
We use nix flakes (which requires users to set `--experimental-features "nix-command flakes"`)
83
+
to build pact and its dependencies. For detailed instructions see [our
0 commit comments