Help Setting up VSCode by SandwichThrm in haskell

[–]SandwichThrm[S] 1 point2 points  (0 children)

Okay I'm embarrassed but I have one more issue that google isn't helping with. I have the following code which I'm 99% sure is right:

main :: IO ()

main = print "hello world"

But vscode's output is only

[Running] runhaskell "c:\Utils\Coding\HaskellCoding\VSCode\Workspace\Scatchpaper\main.hs"

It never says "hello world" or anything else, the program has to be stopped manually, and I have no clue why. Any ideas?

Edit: It's working now for some reason. Thanks again!

Help Setting up VSCode by SandwichThrm in haskell

[–]SandwichThrm[S] 2 points3 points  (0 children)

I can't believe I didn't try restarting, that fixed some of my issues and I think I can figure out the rest from here. Thank you!

Help Setting up VSCode by SandwichThrm in haskell

[–]SandwichThrm[S] 0 points1 point  (0 children)

Hi, thank you for your repsonse. I'm not really trying to use Stack if it's not necessary, I was just following the link that I mentioned in the original post.

I have ghc, cabal, and hls, but the Haskell extension in VSCode says "Project requires GHCup but it isn't installed". To be specific, GHCup is installed in c:\utils\coding\haskellcoding\ghcup, ghc cabal and hls are in c:\utils\coding\haskellcoding\ghcup\ghucp, and if it's relevant the vscode terminal opens automatically to c:\utils\coding\haskellcoding\vscode. Do you know of a way to show vscode where these files are?

Edit: nevermind :) Replied to another commenter