[Haskell-cafe] Project builds with stack, not with cabal. How to diagnose?

Simon Jakobi simon.jakobi at googlemail.com
Fri Jan 29 21:15:26 UTC 2021

(I forgot to CC the list)

Hi Han,

with stack, you can use `stack ls dependencies` to get a list of your
dependencies with versions. With cabal, you can use `cabal freeze`.

The error message you linked indicates that changes in microlens or lens
might be the problem. Both have exported (^?) for a long time though. It
turns out that you're re-exporting the entirety of RIO from
Ampersand.Basics (via Ampersand.Basics.Prelude). And RIO has only recently
begun to export parts of microlens:


Am Fr., 29. Jan. 2021 um 21:47 Uhr schrieb Han Joosten <
han.joosten.han at gmail.com>:

> Dear Café,
> I have been building my project for quite some time now using Stack. That
> works fine. However, I also want to make sure cabal users can build it from
> source.
> Recently I have been trying to set this up using github actions. I use a
> matrix to build both with stack and with cabal. I use the same version of
> ghc.
> A recent build can be seen here:
> https://github.com/AmpersandTarski/Ampersand/runs/1756887612
> I guess that the error is due to the fact that the used packages to build
> are somehow different between the stack build and the cabal build.
> Is there some way to find out what those differences are?
> Any help would be appreciated!
> Thanks
> Han Joosten
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20210129/6ce95759/attachment.html>

More information about the Haskell-Cafe mailing list