Skip to content

Commit

Permalink
DevContainer for Haskell Cλash
Browse files Browse the repository at this point in the history
ghcup 0.1.22.0   latest,recommended
ghc   9.6.4      base-4.18.2.0             hls-powered
cabal 3.10.2.1   latest,recommended
stack 2.13.1     recommended

- How to start

  ```bash
  git clone https://github.com/tonosaman/haskell-dev-env
  cd haskell-dev-env
  stack new --resolver lts-22.13 clash-project clash-lang/simple
  ```

- [BUG]`stack build` is failed
  "`-fplugin` could not find module when using GHC 9.6 #6251"
  commercialhaskell/stack#6251

  Use cabal for build project
  `cabal run clash -- Example.Project --systemverilog`
  • Loading branch information
tonosaman authored and tono committed Mar 28, 2024
1 parent 7ea656b commit cb1a28f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM debian:bookworm-slim as base

ENV LANG C.UTF-8

ARG GHC_VERSION=9.6.3
ARG GHC_VERSION=recommended
ARG STACK_VERSION=recommended
ARG STACK_RESOLVER=nightly
ARG CABAL_VERSION=recommended
Expand Down Expand Up @@ -89,11 +89,11 @@ RUN cabal install --haddock-hoogle --minimize-conflict-set \
haskell-dap-0.0.16.0 \
ghci-dap-0.0.22.0 \
haskell-debug-adapter-0.0.39.0 \
hlint-3.6.1 \
hlint-3.8 \
apply-refact-0.14.0.0 \
retrie-1.2.2 \
hoogle-5.0.18.3 \
ormolu-0.7.2.0
ormolu-0.7.4.0

FROM packages as hoogle

Expand Down
10 changes: 5 additions & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"build": {
"args": {
"USERNAME": "vscode",
"GHC_VERSION": "9.6.3",
"STACK_VERSION": "recommended",
"STACK_RESOLVER": "lts-21.20",
"CABAL_VERSION": "recommended",
"HLS_VERSION": "recommended",
"GHC_VERSION": "9.6.4",
"STACK_VERSION": "2.13.1",
"STACK_RESOLVER": "lts-22.13",
"CABAL_VERSION": "3.10.2.1",
"HLS_VERSION": "2.7.0.0",
"LLVM_VERSION": "17"
},
"context": "..",
Expand Down

0 comments on commit cb1a28f

Please sign in to comment.