Skip to content
This repository was archived by the owner on Jan 12, 2025. It is now read-only.
This repository was archived by the owner on Jan 12, 2025. It is now read-only.

[Bug]: Haskell: globalPackages option installs no libraries #584

Description

@klezm

Feature id and version

ghcr.io/devcontainers-contrib/features/haskell:2

Devcontainer base Image

mcr.microsoft.com/devcontainers/base:jammy

What happened?

Packages (e.g. hspec) passed to globalPackages are only installed as executables and not as libraries, which often is necessary. For them to be accessible as libraries the --lib flag is missing in the cabal install command here: https://github.com/devcontainers-contrib/features/blob/9a1d24b27b2d1ea8916ebe49c9ce674375dced27/src/haskell/install.sh#L89

For more info on cabal install --lib and the difference between libraries and executables see: haskell/cabal#6481 and cabal.readthedocs.io [1], [2]

Maybe an additional option (e.g. globalLibraries) for this feature would be the best.

Relevant log output

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions