
git clone -recurse-submodules cd haskell-ide-engine So let’s change directories and download the haskell ide engine alongside our project. Stack has configured version 8.6.4 of the compiler for me. stack ghc -version The Glorious Glasgow Haskell Compilation System, version 8.6.4 First, let’s check what version of the compiler our project is using. Haskell Language Server adds a number of features we expect from a modern development environment, type information, function definitions, jump to definition, case-splitting, etc.īut, before we can install the plugin, we need to install the haskell-ide-engine for the version of Haskell that Stack has set our project up with. When we first launch VS Code and open a Haskell file we’re greeted by a rather plain looking file. The setup command actually downloads the compiler to an isolated location, so it won’t interfere with any other installations of Haskell on your system. stack new my-project cd my-project stack setup

Make sure you’re on the latest version of Xcode and type the following into the terminal. Thankfully, there is a simple way to get started with Haskell, the Haskell Tool Stack, and we’ll set it up with homebrew. You’ll see mentions of Cabal and GHCI, perusing the official Haskell documentation doesn’t make it any easier, as it’s still focused on setting everything up with Cabal and sandboxes. Reading through the instructions in the Haskell VS Code extensions doesn’t really tell you a whole lot about actually setting up a Haskell environment.

Hmm?!? Where to start? The Haskell Tool Stack
