Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Add cmd script to install with cabal #1542

Merged
merged 6 commits into from
Jan 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,12 @@ The install-script can be invoked via `cabal` instead of `stack` with the comman
cabal v2-run ./install.hs --project-file install/shake.project <target>
```

or using the existing alias script

```bash
./cabal-hie-install <target>
```

Running the script with cabal on windows requires a cabal version greater or equal to `3.0.0.0`.

Unfortunately, it is still required to have `stack` installed so that the install-script can locate the `local-bin` directory (on Linux `~/.local/bin`) and copy the `hie` binaries to `hie-x.y.z`, which is required for the `hie-wrapper` to function as expected. There are plans to remove this requirement and let users build hie only with one build tool or another.
Expand Down
2 changes: 2 additions & 0 deletions cabal-hie-install
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
cabal v2-run ./install.hs --project-file install/shake.project $@
jneira marked this conversation as resolved.
Show resolved Hide resolved
1 change: 1 addition & 0 deletions cabal-hie-install.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@cabal v2-run .\install.hs --project-file=install\shake.project %*