qfpl / applied-fp-course

Applied Functional Programming Course - Move from exercises to a working app!
http://qfpl.io/projects/professional-fp-courses/
Other
625 stars 180 forks source link

Visual Studio Code with vscode-ghc-simple #70

Open treffynnon opened 5 years ago

treffynnon commented 5 years ago

This could just be a big time suck and not helpful for the course itself, but here goes anyway.

This is the tool I was talking about at the course the other day (kinda like dante, but for vscode instead of emacs): https://github.com/dramforever/vscode-ghc-simple

I was running:

I tried setting it to use cabal for the vscode project workspace, but it still wasn't initialising. The fp-course does with this vscode extension, but please note I was not using nix-shell for that one!

For ghcid with the applied course it was working with:

$> nix-shell
$ nix-shell> ghcid -c 'cabal new-repl'

so I suspect that if it was just run without nix, but with cabal directly it might work - I've not had a chance to test this theory however.

mankyKitty commented 5 years ago

If I get a chance I'll see if I can at least provoke some errors. Thanks for this!