From a92c3366af18f00c08dd52e1ec6aa1dd831ac41a Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 6 Apr 2020 18:37:47 +0200 Subject: [PATCH] [ADD] Haskell installation to Makefile The `--copy-compiler-tool` flag is recommend in "An opiniated guide to Haskell in 2018". --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ff40e1d..2b7b259 100644 --- a/Makefile +++ b/Makefile @@ -39,6 +39,7 @@ CLI_DEPENDENCIES := \ community/pandoc \ community/shellcheck \ community/shfmt \ + community/stack \ community/stow \ community/tig \ community/udiskie \ @@ -83,6 +84,10 @@ RUST_DEPENDENCIES := \ clippy \ rustfmt \ +HASKELL_DEPENDENCIES := \ + brittany \ + hlint \ + STOW_TARGET := $(HOME) STOW = stow -t $(STOW_TARGET) -R -v @@ -93,7 +98,7 @@ all: install .PHONY: install-cli install-cli: install-cli-deps install-cli: link-cli -install-cli: rust +install-cli: rust haskell .PHONY: install install: install-cli @@ -156,3 +161,7 @@ unstow-tin: rust: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh rustup component add $(RUST_DEPENDENCIES) + +.PHONY: haskell +haskell: + stack build --copy-compiler-tool $(HASKELL_DEPENDENCIES)