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

Install Cabal library using stack GHC #966

Merged
merged 1 commit into from
Dec 1, 2018
Merged
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
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ build: hie-8.2.1 hie-8.2.2 \
build-all: build build-docs
.PHONY: build-all

GHC := $(shell stack path --compiler-exe)

ghc:
$(GHC) --version
@echo GHC
.PHONY: ghc

# ------------------------------------------------------

## Builds hie for GHC version 8.2.1 only
Expand Down Expand Up @@ -91,8 +98,9 @@ submodules:
## NOTE 2: this is temporary, will go away once the new cabal-helper lands.
## NOTE 3: This is needed for stack only projects too
cabal:
cabal update
cabal install Cabal-2.4.1.0
stack install cabal-install
cabal v1-update
cabal v1-install Cabal-2.4.1.0 --with-compiler=$(GHC)
.PHONY: cabal

# ------------------------------------------------------
Expand Down