Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

My Haskell Setup 2019

This method is OS, GHC version, and editor agnostic.

Enable docker in your stack.yaml file

# stack.yaml
    enable: true

Set up direnv to use the paths given by stack.

# .envrc
export PATH=$(/usr/local/bin/stack path --bin-path)
$ direnv allow .

Install ghcid and copy it to directory for compiler tools

$ stack build --copy-compiler-tool ghcid

Run the following command while editing code in your favorite editor

$ ghcid --command "stack repl" --test ":main"

This post first appeared on Me In Words | A Compendium Of Plagiarized Ideas, please read the originial post: here

Share the post

My Haskell Setup 2019


Subscribe to Me In Words | A Compendium Of Plagiarized Ideas

Get updates delivered right to your inbox!

Thank you for your subscription