
ĭoes the setup I'm describing makes sense to veterans? Haskell Language Server is now much easier to install, have a look at this post and the video at the end of it. I'm wondering if I took the wrong turn or if this is how most people start? I do realise that the entire situation is entirely self inflicted and I could've started with learning the language right after installing GHC and firing up GHCI. The nuances of the small but crucial part of the ecosystem. However, I wasn't prepared to have to figure out The fault is all mine for not paying better attention to the docs I was reading. Once I better understood what parts were involved it was easy to google for solution and forced me to thoroughly read the docs. The result is a mismatch between version the version HIE is build against and the version that was setup by stack new my-project. HIE build itself (?) by looking at the ghc installed by ghcup which is 8.6.5.stack new my-project by default used the most recent resolver 15.2 which installed ghc 8.8.2 (isolated to the project).ghcup installed ghc 8.6.5 on my machine.

#BEST HASKELL IDE CODE#
The build is succesfull, so far I've installed HIE, ghcup, ghc, cabal-install, visual studio code package Haskell Language Server Haskell-ide-engine which can be considered a part of the whole that haskell-language-server will be.īeing naive and satisfied with the experience so far, I build hie from source as I'm neither interested inĭoing anything with nix at this point or figuring out what a Visual Studio Code DevContainer is. Moving on to IDE, google leads me to the haskell-language-server which is not ready for the prime time. I intuitevely understand the problem – that this is addressing – and I move on (this is before I've found ). What I could have not known is that resolver 15.2 "expects" to find ghc 8.8.2 and if it does not find it, it does the sensible thing and installs it. Isolated environment with "the batteries included" for the project (please correct me on any wrong assumption/terminology). What I didn't knew or care to at this point, is that it by default would use the 15.2 version of the resolver (most recent as I write this) to setup an Specifically stack new my-project for the uninitiated will setup a new project based on what is called a resolver. Next part of stack documentation got me into trouble.

The procedure is straight-forward and after stack did everything it needs to do I stack -version which told me that I have I was able to ghcup list, ghcup list -t all and everything looked good. I've Downloaded ghcup as per recommendation which in turn installed ghc 8.6.5 & cabal-install 3.0.0.0.īoth are the recommended versions according to ghcup. Which led me to the following page (I'm on macOS 10.13.6).
#BEST HASKELL IDE HOW TO#
Like all sensible people I've asked google how to install haskell, I'm sharing my foray into Haskell and hopefully save someone else from a rookie mistake or two. To the same version of GHC that was installed by ghcup. Make sure that stack new as per ( ) and the HIE you are installing are all resolving


If this is your first contact with Haskell and you want to install Haskell (ghccup, ghc, cabal-install, stack) and a dev environment made up of Visual Studio Code, Haskell Language Server plugin and HIE.
