Haskell installation not installing compiler

Abierto
#2,664 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
58/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
haskell
Área
build-system

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Go
Estrellas
12.4k
Forks
358
Merge medio
17 h 12 min
PR fusionados (30 d)
31

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de jetify-com/devbox

Todos los issues de jetify-com/devbox

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.