$ cabal repl -b microlens-aeson --constraint="aeson==2.2.0.0"
Resolving dependencies...
Build profile: -w ghc-9.2.8 -O1
In order, the following will be built (use -v for more details):
- microlens-aeson-2.5.0 (lib) (requires build)
- fake-package-0 (lib) (first run)
Starting microlens-aeson-2.5.0 (lib)
Building microlens-aeson-2.5.0 (lib)
Failed to build microlens-aeson-2.5.0.
Build log (
/home/ryanglscott/.cache/cabal/logs/ghc-9.2.8/microlens-aeson-2.5.0-8fc66a6ec1cf7f843aa73884f20b9fcb8af47f4d008631017ab01ee12e1ed695.log
):
Configuring library for microlens-aeson-2.5.0..
Preprocessing library for microlens-aeson-2.5.0..
Building library for microlens-aeson-2.5.0..
[1 of 2] Compiling Lens.Micro.Aeson.Internal ( src/Lens/Micro/Aeson/Internal.hs, dist/build/Lens/Micro/Aeson/Internal.o, dist/build/Lens/Micro/Aeson/Internal.dyn_o )
[2 of 2] Compiling Lens.Micro.Aeson ( src/Lens/Micro/Aeson.hs, dist/build/Lens/Micro/Aeson.o, dist/build/Lens/Micro/Aeson.dyn_o )
src/Lens/Micro/Aeson.hs:33:1: error:
Could not load module ‘Data.Aeson.Parser’
It is a member of the hidden package ‘aeson-2.1.2.1’.
Perhaps you need to add ‘aeson’ to the build-depends in your .cabal file.
It is a member of the hidden package ‘aeson-2.1.2.1’.
Perhaps you need to add ‘aeson’ to the build-depends in your .cabal file.
It is a member of the hidden package ‘aeson-2.1.2.1’.
Perhaps you need to add ‘aeson’ to the build-depends in your .cabal file.
It is a member of the hidden package ‘aeson-2.1.2.1’.
Perhaps you need to add ‘aeson’ to the build-depends in your .cabal file.
It is a member of the hidden package ‘aeson-2.1.2.1’.
Perhaps you need to add ‘aeson’ to the build-depends in your .cabal file.
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
|
33 | import Data.Aeson.Parser (value)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: cabal: Failed to build microlens-aeson-2.5.0 (which is required by
fake-package-0). See the build log above for details.
I imagine that applying a fix similar to https://github.com/lens/lens-aeson/pull/54 would address this.