Difference between revisions of "Translations:Functional programming/19/en"
Jump to navigation
Jump to search
(Importing a new version from external source) |
(Importing a new version from external source) |
||
Line 9: | Line 9: | ||
</pre> | </pre> | ||
</li> | </li> | ||
− | <li>Create a directory that will be a stack root, it should be readable by all users (for example <code>/stack</code>).</li> | + | <li>Create a directory that will be a stack root, it should be readable by all users (for example <code>/opt/stack</code>).</li> |
<li>Create a file <code>/etc/profile.d/stack.sh</code> with following line:<CODE>export STACK_ROOT=</CODE>''your stack root directory''</li> | <li>Create a file <code>/etc/profile.d/stack.sh</code> with following line:<CODE>export STACK_ROOT=</CODE>''your stack root directory''</li> | ||
<li>Create a file <code>/etc/stack/config.yaml</code> with following lines: | <li>Create a file <code>/etc/stack/config.yaml</code> with following lines: | ||
Line 18: | Line 18: | ||
</pre> | </pre> | ||
</li> | </li> | ||
− | <li>Generate stack global config (for example <code>stack path</code>) and change the global resolver in file <code>$STACK_ROOT/global-project/stack.yaml</code> to <code>lts-12.15</code>.</li> | + | <li>Generate stack global config (for example <code>stack path</code>) and change the global resolver in file <code>$STACK_ROOT/global-project/stack.yaml</code> to |
+ | *<code>lts-12.15</code> for Ubuntu 19.04 (ghc 8.4.4) | ||
+ | *<code>lts-8.0</code> for Ubuntu 18.04 (ghc 8.0.2)</li> | ||
<li> Continue with installation of required packages: | <li> Continue with installation of required packages: | ||
<pre class="bash"> | <pre class="bash"> |
Latest revision as of 11:38, 14 August 2019
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
/opt/stack
). - Create a file
/etc/profile.d/stack.sh
with following line:export STACK_ROOT=
your stack root directory - Create a file
/etc/stack/config.yaml
with 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.yaml
tolts-12.15
for Ubuntu 19.04 (ghc 8.4.4)lts-8.0
for Ubuntu 18.04 (ghc 8.0.2)
- Continue with installation of required packages:
stack install intero phoityne-vscode haskell-dap
- It will produce some executable files to
~/.local/bin
copy them to:/usr/local/bin
(or other search when executing location). - Open VS Code and install extensions:
- Haskero
- Haskell GHCi Debug Adapter Phoityne