Skip to content

Instantly share code, notes, and snippets.

@arnabdas
Created September 25, 2018 16:11
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save arnabdas/ca5f01b39853dc057aad620f1356575e to your computer and use it in GitHub Desktop.
Save arnabdas/ca5f01b39853dc057aad620f1356575e to your computer and use it in GitHub Desktop.
Install Haskell on Ubuntu 18.04
#!/bin/bash
add-apt-repository -y ppa:hvr/ghc
apt-get install -y cabal-install-2.4
apt install ghc-8.6
curl -sSL https://get.haskellstack.org/ | sh
# to install intero, either install
apt-get install libncurses-dev
# or
apt-get install libtinfo-dev
PATH=~/.cabal/bin:/opt/cabal/2.4/bin:/opt/ghc/8.6.1/bin:~/.local/bin:$PATH
stack build intero
@fayeznasri
Copy link

sorry ,
after i compiled the codes how i will start the hakell program to start coding ??

@vmsda
Copy link

vmsda commented Apr 9, 2019

Script did not finish: ./haskell-install.sh: line 17: stack: command not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment