Skip to content

New functions for pkgs.haskell.lib #225945

@deemp

Description

@deemp

Project description

I'd like to propose a couple of functions that should simplify the setup of Haskell projects.
I'm not aware if they're already available anywhere.

  • getHaskellPackagesDeps - provides a list of all packages from getCabalDeps of packages p1,p2,...pN minus packages p1, p2, ..., pN. This allows for developing local packages with other local packages as dependencies. Only non-local packages will be collected.

  • ghcForPackages - uses the previous function to construct a ghc with packages. It's a ghc with dependencies for local packages provided via an override of haskell.packages.

  • It may be useful to provide a wrapper for cabal that puts the ghc with packages on PATH of cabal. That's a way to avoid conflicts between ghc versions in a devshell like haskell-language-server provides its own GHC in a devshell #225895

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: packaging requestRequest for a new package to be added6.topic: haskellGeneral-purpose, statically typed, purely functional programming language

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions