Translations:Functional programming/19/en
Jump to navigation
Jump to search
Installation guide Ubuntu (all users)
-
Perform following commands:
sudo apt-get install haskell-platform sudo apt-get install haskell-stack sudo snap install code --classic
- Create a directory that will be a stack root, it should be readable by all users (for example
/stack). - Create a file
/etc/profile.d/stack.shwith following line:export STACK_ROOT=your stack root directory - Create a file
/etc/stack/config.yamlwith following lines:skip-ghc-check: true system-ghc: true allow-different-user: true
- Generate stack global config (for example
stack path) and change the global resolver in file$STACK_ROOT/global-project/stack.yamltolts-12.15. - Continue with installation of required packages:
stack install intero phoityne-vscode haskell-dap
- It will produce some executable files to
~/.local/bincopy them to:/usr/local/bin(or other search when executing location). - Open VS Code and install extensions:
- Haskero
- Haskell GHCi Debug Adapter Phoityne