See 1.
$ mkdir src
$ cd src
$ stack new hello-world simple
$ stack build
$ stack exec hello-world
PATH
$ cd ~
$ stack setup
$ stack path | grep ghc-paths
$ stack path | grep local-bin-path
Add the ghc-paths
and local-bin-path
values to PATH
in .bashrc
. For example:
export PATH=/home/rcook/.stack/programs/x86_64-linux/ghc-7.10.2/bin:/home/rcook/.local/bin:$PATH
$ cd ~
$ stack install hdevtools
$ stack install hlint
$ stack install cabal-helper ghc-mod
$ stack install hoogle
$ hoogle data
$ mkdir -p ~/.vim/autoload ~/.vim/bundle ~/.vim/swap
$ curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
$ cd ~/.vim/bundle
$ git clone https://github.com/scrooloose/syntastic.git
$ git clone https://github.com/bitc/vim-hdevtools.git
$ git clone https://github.com/eagletmt/neco-ghc.git
Content © 2025 Richard Cook. All rights reserved.