Difference between revisions of "Translations:Functional programming/19/en"

From Marek Běhálek Wiki
Jump to navigation Jump to search
(Importing a new version from external source)
 
(Importing a new version from external source)
Line 28: Line 28:
 
* Haskero
 
* Haskero
 
* Haskell GHCi Debug Adapter Phoityne
 
* Haskell GHCi Debug Adapter Phoityne
</li>
 
</ol>
 

Revision as of 07:46, 13 August 2019

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 /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.
  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