Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't build with aeson >=2 #36

Closed
Tracked by #2315 ...
hasufell opened this issue Oct 9, 2021 · 3 comments
Closed
Tracked by #2315 ...

Doesn't build with aeson >=2 #36

hasufell opened this issue Oct 9, 2021 · 3 comments

Comments

@hasufell
Copy link
Contributor

hasufell commented Oct 9, 2021

haskell/aeson#864

$ cabal repl --build-depends aeson-pretty                                                                                                             Sat 21:12
Resolving dependencies...
Build profile: -w ghc-8.10.7 -O1
In order, the following will be built (use -v for more details):
 - aeson-pretty-0.8.8 (lib) (requires build)
 - fake-package-0 (lib) (first run)
Starting     aeson-pretty-0.8.8 (lib)
Building     aeson-pretty-0.8.8 (lib)

Failed to build aeson-pretty-0.8.8.
Build log (
/home/hasufell/.cabal/logs/ghc-8.10.7/aeson-pretty-0.8.8-7d5e0bebeaf77dbf14fbe263246433acbce057be5e13a95f8a842096920829bb.log
):
Configuring library for aeson-pretty-0.8.8..
Preprocessing library for aeson-pretty-0.8.8..
Building library for aeson-pretty-0.8.8..
[1 of 1] Compiling Data.Aeson.Encode.Pretty ( Data/Aeson/Encode/Pretty.hs, dist/build/Data/Aeson/Encode/Pretty.o, dist/build/Data/Aeson/Encode/Pretty.dyn_o )

Data/Aeson/Encode/Pretty.hs:58:1: error:
    Could not load module ‘Data.Aeson.Encode’
    It is a member of the hidden package ‘aeson-1.5.6.0’.
    Perhaps you need to add ‘aeson’ to the build-depends in your .cabal file.
    It is a member of the hidden package ‘aeson-1.5.6.0’.
    Perhaps you need to add ‘aeson’ to the build-depends in your .cabal file.
    It is a member of the hidden package ‘aeson-1.5.6.0’.
    Perhaps you need to add ‘aeson’ to the build-depends in your .cabal file.
    It is a member of the hidden package ‘aeson-1.5.6.0’.
    Perhaps you need to add ‘aeson’ to the build-depends in your .cabal file.
    It is a member of the hidden package ‘aeson-1.5.6.0’.
    Perhaps you need to add ‘aeson’ to the build-depends in your .cabal file.
    It is a member of the hidden package ‘aeson-1.5.6.0’.
    Perhaps you need to add ‘aeson’ to the build-depends in your .cabal file.
    It is a member of the hidden package ‘aeson-1.5.6.0’.
    Perhaps you need to add ‘aeson’ to the build-depends in your .cabal file.
    It is a member of the hidden package ‘aeson-1.5.6.0’.
    Perhaps you need to add ‘aeson’ to the build-depends in your .cabal file.
    It is a member of the hidden package ‘aeson-1.5.6.0’.
    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.
   |
58 | import qualified Data.Aeson.Encode as Aeson
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Failed to build aeson-pretty-0.8.8 (which is required by
fake-package-0). See the build log above for details.
@sjakobi
Copy link

sjakobi commented Oct 9, 2021

I think v0.7.2 and up should be revised to prevent building with aeson >= 2.

hasufell added a commit to hasufell/aeson-pretty that referenced this issue Oct 9, 2021
@hasufell
Copy link
Contributor Author

hasufell commented Oct 9, 2021

PR here: #37

@sjakobi
Copy link

sjakobi commented Oct 11, 2021

I think v0.7.2 and up should be revised to prevent building with aeson >= 2.

As a Hackage trustee, I have created these revisions, e.g. https://hackage.haskell.org/package/aeson-pretty-0.8.8/revisions/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants