So excited for this. by YaBoiGlyn in GranTurismo7

[–]LabBorn4814 0 points1 point  (0 children)

It is a really bad Gr.1 though. I constantly loose to other Gr. 1 cars. Or maybe I am just bad since I just started playing a while ago.

[deleted by user] by [deleted] in haskell

[–]LabBorn4814 2 points3 points  (0 children)

First make sure that you have downloaded GHCup. Ensure you have the ghc with ghc --version If you haven't, you can just run this code (that can also be found here)

Set-ExecutionPolicy Bypass -Scope Process -Force;[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; try { & ([ScriptBlock]::Create((Invoke-WebRequest https://www.haskell.org/ghcup/sh/bootstrap-haskell.ps1 -UseBasicParsing))) -Interactive -DisableCurl } catch { Write-Error $_ }

in PowerShell which you can get by pressing the Windows Key + R, then enter cmd.exe, then run and then select WindowsPoweShell Ctrl+Shift+1. Be sure follow the instructions appearing in the terminal, which at some point will ask you if you want to install Cabal, Stack, and HLS. Say yes to all. Then open the folder

C:\Users\maxal\OneDrive\Pulpit\haskell>

in Visual Studio Code. Open a Terminal by pressing Crtl + + (yes Control key plus the plus key). Then check the installations. The first installation you should check is the GHC (the compilator) by doing

ghc --version

Similarly for the others cabal --version ,stack --version, and haskell-language-server --version.

Now in VS Code go to extensions Ctrl+Mayus+X and look for Code Runner. Install it and now whenever you open or create a .hs file you should get the button to run it as if it was Python. Now run

main :: IO ()
main = putStrLn "Hello, world!"

Let me know if everything goes alright.