amerocu / haskell-editor-setup

Haskell Editor Setup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Haskell Editor Setup

An example project setup for Haskell using VSCode. Fire those commands hoping for the best.

Install Stack

Install stack

wget -qO- https://get.haskellstack.org/ | sh

Install tools system wide (cd ~)

stack install hlint phoityne-vscode hspec-discover

Build this project

stack build

stack test

You have to export Stack installed binaries if not already in your path

export PATH=$PATH:~/.local/bin

Install HIE

With Nix

Install nix

bash <(curl https://nixos.org/nix/install)

Install cachix client

nix-env -iA cachix -f https://cachix.org/api/v1/install

Cache hie binaries

cachix use all-hies

Install some HIE for lts-14.21(ghc-8.6.5)

nix-env -iA selection --arg selector 'p: { inherit (p) ghc865; }' -f https://github.com/infinisil/all-hies/tarball/master

Usefull links

Heavily inspired by

Nix things

Generally usefull

About

Haskell Editor Setup

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Haskell 100.0%