Translations:Functional programming/21/en

From Marek Běhálek Wiki
Jump to navigation Jump to search

Installation guide Ubuntu (single users)

  1. Perform following commands:
    sudo apt-get install haskell-platform
    sudo apt-get install haskell-stack
    sudo snap install code --classic
    
    • Optional step - Right now (August, 2019) Haskell Platform from Ubuntu repositories contains GHC 8.4.4. Stack current default resolver is lts-14.00. It requires GHC version 8.6.5. It will automatically download this version. To save disk space, you can generate stack global config (for example stack path) and change the global resolver in file ~/.stack/global-project/stack.yaml to lts-12.15. Then open file ~/.stack/config.yaml and add lines:
    system-ghc : true
    skip-ghc-check: true
    
  2. Continue with installation of required packages:
    stack install intero phoityne-vscode haskell-dap
    
  3. Open VS Code and install extensions:
    • Haskero
    • Haskell GHCi Debug Adapter Phoityne