<p>The recommended way to install Haskell on Linux is by using GHCUP. Using <code>apt</code> may install an old version of GHC.</p>
<p>Simply enter the following command on your WSL terminal:</p>
<pre><code>curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
</code></pre>
<p>It depends on your use case. If you would like to develop using Haskell, I would recommend installing Stack too. Note that you should not install the Haskell Language Server if you plan on using VS Code. VS Code will download it for you, depending on your GHC version.</p>

CC BY-SA 4.0
2022-05-20T15:11:10.570Z
2022-05-20T15:11:10.570Z
Karl Roldan
<p>You will likely want to use wsl2 on windows, if you aren't already, as you will have build issues.</p>
<p><a href="https://winaero.com/set-linux-distro-version-to-wsl-1-or-wsl-2-in-windows-10/" rel="nofollow noreferrer">https://winaero.com/set-linux-distro-version-to-wsl-1-or-wsl-2-in-windows-10/</a></p>

CC BY-SA 4.0
2022-05-30T21:32:56.677Z
2022-12-06T00:43:55.797Z
2022-12-06T00:43:55.797Z
Rust_Dev
<p>Found two great resources from the Plutus Pioneers Program<br />
youtu.be/mnfItts6VbU and<br />
youtu.be/g2F9raiGp_s</p>
<p>I had to jump around a bit because these videos are for Plutus not Marlowe but there was good information on installing WSL-Ubuntu, Cabal, Nix, and VSCode</p>
<p>Haskell was installed at the linux terminal window with the following command</p>
<pre><code>sudo apt install ghc
</code></pre>

CC BY-SA 4.0
2022-05-19T03:36:19.557Z
2022-05-19T03:36:19.557Z
John Shearing
<p>I just installed Ubuntu on WSL for Windows 10 in order to get ready for the Marlowe Pioneers Program. I figure I will need to install GHC and Cabal next in order to install the Cardano-CLI and Marlowe-CLI.</p>
<p>Can someone please tell me the best way to install GHC and Cabal on WSL/Ubuntu?
Much Thanks</p>

<haskell><ubuntu>
Installing GHC on WSL
# Installing GHC on WSL

(Asked by: username_0 on 2022-05-19)

I just installed Ubuntu on WSL for Windows 10 in order to get ready for the Marlowe Pioneers Program. I figure I will need to install GHC and Cabal next in order to install the Cardano-CLI and Marlowe-CLI.

Can someone please tell me the best way to install GHC and Cabal on WSL/Ubuntu?
Much Thanks

**Tags:** haskell, ubuntu

---

## 3 answers

### Answer by username_1 on 2022-05-20. Score: 3 | Accepted answer

The recommended way to install Haskell on Linux is by using GHCUP. Using apt may install an old version of GHC.
Simply enter the following command on your WSL terminal:
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh

It depends on your use case. If you would like to develop using Haskell, I would recommend installing Stack too. Note that you should not install the Haskell Language Server if you plan on using VS Code. VS Code will download it for you, depending on your GHC version.


---

### Answer by username_2 on 2022-05-30. Score: 1

You will likely want to use wsl2 on windows, if you aren't already, as you will have build issues.

<https://winaero.com/set-linux-distro-version-to-wsl-1-or-wsl-2-in-windows-10/>


---

### Answer by username_0 on 2022-05-19. Score: 0

Found two great resources from the Plutus Pioneers Program
youtu.be/mnfItts6VbU and
youtu.be/g2F9raiGp_s
I had to jump around a bit because these videos are for Plutus not Marlowe but there was good information on installing WSL-Ubuntu, Cabal, Nix, and VSCode
Haskell was installed at the linux terminal window with the following command
sudo apt install ghc


---

