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
stack config set system-ghc --global true
stack config set resolver lts-19.24
stack setup
Inside the project
stack init
stack install hlint
stack install ghcid
stack install haskell-dap ghci-dap haskell-debug-adapter
stack install stylish-haskell hindent
.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",
]
}