Translations:Functional programming/19/en

From Marek Běhálek Wiki
Revision as of 11:38, 14 August 2019 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Installation guide Ubuntu (all users)

  1. Perform following commands:
    sudo apt-get install haskell-platform
    sudo apt-get install haskell-stack
    sudo snap install code --classic
    
  2. Create a directory that will be a stack root, it should be readable by all users (for example /opt/stack).
  3. Create a file /etc/profile.d/stack.sh with following line:export STACK_ROOT=your stack root directory
  4. Create a file /etc/stack/config.yaml with following lines:
    skip-ghc-check: true
    system-ghc: true
    allow-different-user: true
    
  5. Generate stack global config (for example stack path) and change the global resolver in file $STACK_ROOT/global-project/stack.yaml to
    • lts-12.15 for Ubuntu 19.04 (ghc 8.4.4)
    • lts-8.0 for Ubuntu 18.04 (ghc 8.0.2)
  6. Continue with installation of required packages:
    stack install intero phoityne-vscode haskell-dap
    
  7. It will produce some executable files to ~/.local/bin copy them to: /usr/local/bin (or other search when executing location).
  8. Open VS Code and install extensions:
    • Haskero
    • Haskell GHCi Debug Adapter Phoityne