What is this This is a DevContainer 1 2 environment for Visual Studio Code, allowing automatically installing the Haskell compiler (GHC), Stack, Cabal, HLS (Haskell Language Server), and the necessary Visual Studio Code extensions to set up a Haskell development environment with zero additional effort.
Visual Studio Code
Haskell and Visual Studio Code errors. Ask Question Asked 3 months ago. Active 3 months ago. Viewed 145 times -1. I started learning the Haskel programming language and decided to use Visual Studio Code. I installed everything properly haskell and stack and a few haskell extensions in VS. When I create a project and import Lib.hs into Main.hs. The extension will be installed in all editions of Visual Studio Code which can be found. While this package installs a specific version of the extension, Visual Studio Code by default will update the extension to the latest version on startup if there's a newer version available on the marketplace.
Haskell
If all dependencies to build GHC (with Hadrian) are installed, the Haskell plugin works out of the box. It installs the required Haskell Language Server automatically.
Haskell Source Code
C
I (Sven) got the best results with the clangd plugin. It requires clangd
to be installed and a compile_commands.json
file to be in place.
compile_commands.json
contains all build parameters for all C files. It can easily be generated with bear. You just have to prefix your build command with bear
, e.g.
Nix
If you're using ghc.nix, you'll very likely want use it the provide the dependencies for the previously described plugins.
Haskell Visual Studio Code
Visual Studio Code Haskell Extension
Haskell Ide Visual Studio Code
This can easily be done with the Nix Environment Selector plugin.