Haskell installation not installing compiler

オープン
#2,664 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
haskell
領域
build-system

調査の方向性

Start with the Haskell installation example linked in the issue and check whether its listed packages install GHC in the described Devbox shell. Reproduce with the provided package list and which ghc, then compare with the Stack executable check. Done means the example accurately explains how to make GHC available and the recommended approach for Devbox users.

索引モデルが issue の本文から書いたものです。

説明

bug looks easy p3 processed triage
What happened?

The instructions for a Haskell install indicate that the following:

  "packages": [
    "stack@latest",
    "cabal-install@latest",
    "zlib@latest",
    "hpack@latest"
  ]

will install GHC. It does not. And it's not clear what the best practice is for a Devbox user:

  • install GHC via stack
  • try adding "nix aware" flags to stack and cabal
  • installing a nix package for ghcup and using that to install GHC

Thanks!

Steps to reproduce
  1. > devbox add stack cabal-install zlib hpack
  2. > devbox shell
  3. > which ghc
  4. > which stack (To verify installation of stack, which seems to work fine.)
Command

shell

devbox.json
{
  "$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.15.0/.schema/devbox.schema.json",
  "packages": [
    "stack@latest",
    "cabal-install@latest",
    "zlib@latest",
    "hpack@latest"
  ],
  "shell": {
    "init_hook": [
      "echo -ne \"\\033]0;📦 𝚍𝚎𝚟𝚋𝚘𝚡 - $(basename \"$PWD\")\\007\"",
      "echo 'Welcome to devbox!' > /dev/null"
    ],
    "scripts": {
      "test": [
        "echo \"Error: no test specified\" && exit 1"
      ]
    }
  },
  "env": {
     "PATH": "$DEVBOX_PROJECT_ROOT/.bin:$PATH",
     "STACK_ROOT": "$DEVBOX_PROJECT_ROOT/.stack",
     "CABAL_DIR": "$DEVBOX_PROJECT_ROOT/.cabal"
  }
}
Devbox version

0.15.0

Nix version

2.29.0

What system does this bug occur on?

macOS (Apple Silicon)

Debug logs

No response

主要言語
Go
スター
12.4k
フォーク
358
平均マージ
17時間 12分
マージ済み PR(30日)
31

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

jetify-com/devbox のほかの issue

jetify-com/devbox の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。