0

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

0

3 Answers 3

2

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.

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
0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.