Skip to content

devbox add ghc && devbox add haskellPackages.aeson does not add aeson to ghc package database #29

@ParetoOptimalDev

Description

@ParetoOptimalDev
$ devbox add ghc
$ devbox add haskellPackages.aeson
$ devbox shell
$ ghc-pkg list | grep aeson

That should show a package listed. Compare to the nix equivalent:

$ ghc-pkg list | grep aeson
    aeson-1.5.6.0

This lets it be used by ghci for instance:

$ ghci 
GHCi, version 8.10.7: https://www.haskell.org/ghc/  :? for help
Prelude> import Data.Aeson
Prelude Data.Aeson> :t parseJSON
parseJSON
  :: FromJSON a =>
     Value -> aeson-1.5.6.0:Data.Aeson.Types.Internal.Parser a

I kind of expected this not to work, but figured I'd make an issue since I think it'd be nice if people could do this. Especially for things like the lens library with tons of dependencies which really make use of binary caching.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or requestgood first issueGood for newcomerslanguage supportRelated to using a specific language in devboxplugin requestRequest for a new package plugin

    Type

    No type

    Projects

    Status

    Merged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions