Skip to content

marcecaro/LearningSamples.hsproj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Haskell Development environment setup

Install ghcup

curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh

using ghcup tui select this versions:

-HLS-1.8.0.0 -cabal-3.8.1.0 -GHC-9.0.2: This is the lates with lts -> lts-19.24

~/.stack/global-project/stack.yaml

packages: []
resolver: lts-19.24
extra-deps:
   - ghc-lib-parser-9.2.4.20220729@sha256:02c229a122d698f055615f2794fbcb01ce4241aaf16ee990068189193c61e228,12741
   - ghc-lib-parser-ex-9.2.1.1@sha256:5c8a31fd7fa1f7c4f4f191c869007bf64eb2e12575f6874cd59ebeec83ae177d,3493

Setup stack

Config

stack config set system-ghc --global true
stack config set resolver lts-19.24

Setup

stack setup

Init

Inside the project

stack init

Install tools

stack install hlint
stack install ghcid
stack install haskell-dap ghci-dap haskell-debug-adapter
stack install stylish-haskell hindent

VSCode configuration

.vscode/settings.json

{
    "haskell.formattingProvider": "brittany",
    "haskell.ghcupExecutablePath": "/home/codespace/.ghcup/bin/ghcup",
    "haskell.manageHLS": "GHCup",
    "haskell.checkProject": true,
    "haskell.openDocumentationInHackage": true,
    "haskell.openSourceInHackage": true,
    "files.autoSave": "onFocusChange",
    "terminal.integrated.sendKeybindingsToShell": true,
    "haskell.toolchain": {
       "ghc": "9.0.2",
       "hls": "1.8.0.0"
    },
    "haskell.hlint.executablePath": "hlint",
    "workbench.colorTheme": "Solarized Light",
    "haskell.formattingProvider": "stylish-haskell",
}

.vscode/settings.json

{
    "recommendations": [
        "haskell.haskell",
        "justusadam.language-haskell",
        "hoovercj.haskell-linter",
        "ms-vscode.makefile-tools",
        "mogeko.haskell-extension-pack",
    ]
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published