From 7972ca54a2eca6983da6807557de2233aff6650e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 23 Dec 2016 19:49:34 -0500 Subject: [PATCH] dev/haskell: add install script; fix .ghci filename --- dev/haskell/{ghci => .ghci} | 0 dev/haskell/install | 12 ++++++++++++ 2 files changed, 12 insertions(+) rename dev/haskell/{ghci => .ghci} (100%) create mode 100755 dev/haskell/install diff --git a/dev/haskell/ghci b/dev/haskell/.ghci similarity index 100% rename from dev/haskell/ghci rename to dev/haskell/.ghci diff --git a/dev/haskell/install b/dev/haskell/install new file mode 100755 index 00000000..646c2e09 --- /dev/null +++ b/dev/haskell/install @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +case $OSTYPE in + darwin*) + brew install ghc cabal-install + ;; + linux*) + if [[ -f /etc/arch-release ]]; then + sudo pacman --needed --noconfirm -S ghc cabal-install + fi + ;; +esac