diagrams / diagrams

Embedded domain-specific language for declarative vector graphics (wrapper package)
https://diagrams.github.io/
Other
202 stars 11 forks source link

Diagrams doedn't compile with last version of Stackage #29

Open cdupont opened 3 years ago

cdupont commented 3 years ago

I tried to put this in my stack.yaml:

$ cat stack.yaml
resolver: lts-18.12
packages:
- .
extra-deps:
- diagrams-1.4
- diagrams-contrib-1.4
- diagrams-core-1.4
- diagrams-lib-1.4
- diagrams-svg-1.4

But it is not compiling (many version out of bound). It would be nice to have instructions on how to compile with stack :) And which stackage LTS versions are compatible. It seems that you are publishing V1.5 in this moment, right?

byorgey commented 3 years ago

Try using the latest versions of everything, and you can leave out the diagrams package since it is just a wrapper for the others anyway. That is,

extra-deps:
- diagrams-contrib-1.4.4
- diagrams-core-1.5.0
- diagrams-lib-1.4.4
- diagrams-svg-1.4.3
cdupont commented 3 years ago

Thanks a lot Brent! Would it be possible to add it to the doc :)

byorgey commented 3 years ago

Which doc did you have in mind? Pull requests are welcome!

On Tue, Oct 5, 2021, 3:28 PM Corentin Dupont @.***> wrote:

Thanks a lot Brent! Would it be possible to add it to the doc :)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/diagrams/diagrams/issues/29#issuecomment-934781219, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAECKY2HIAHOD6XY4C6VF4TUFNNXVANCNFSM5FJC7UOA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

cdupont commented 3 years ago

I managed to compile with this stack.yaml:

resolver: lts-18.12
packages:
- .
extra-deps:
- diagrams-1.4.0.1
- diagrams-contrib-1.4.4
- diagrams-core-1.5.0
- diagrams-lib-1.4.4
- diagrams-svg-1.4.3
- active-0.2.0.15
- dual-tree-0.2.3.0
- force-layout-0.4.0.6
- monoid-extras-0.6
- svg-builder-0.1.1

It could be inserted here: https://archives.haskell.org/projects.haskell.org/diagrams/download.html Or here: https://archives.haskell.org/projects.haskell.org/diagrams/doc/quickstart.html