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

diagrams library not present in lts-11.0 #3369

Closed
kostmo opened this issue Mar 13, 2018 · 3 comments
Closed

diagrams library not present in lts-11.0 #3369

kostmo opened this issue Mar 13, 2018 · 3 comments

Comments

@kostmo
Copy link

kostmo commented Mar 13, 2018

What is the best way to find out what resulted in dropping the diagrams library from the new LTS series?

E.g. is there a specific command we can run locally to observe a build breakage (and therefore possibly contribute a fix)?

@DanBurton
Copy link
Contributor

In LTS 11, we upgraded to lens-4.16, but diagrams-lib requires lens < 4.16.

It can take some getting used to in order to figure out that this was the reason, but the simplest method I can recommend is:

stack unpack diagrams
cd diagrams-1.4
echo 'resolver: lts-11.0' > stack.yaml
stack build

Note the missing dependencies, and repeat the process for each of those in turn to see why they were excluded.

Eventually you get

In the dependencies for diagrams-lib-1.4.2:
    diagrams-solve must match >=0.1 && <0.2, but the stack configuration has
                   no specified version (latest matching version is 0.1.1)
    dual-tree must match >=0.2 && <0.3, but the stack configuration has no
              specified version (latest matching version is 0.2.1)
    lens-4.16 from stack configuration does not match >=4.6 && <4.16 (latest
              matching version is 4.15.4)

@DanBurton
Copy link
Contributor

A good way to find out why something has been removed is usually to grep it in Stackage's build-constraints.yaml file. In most cases there will be a comment pointing you in the right direction. However there were many removals in order to get LTS 11 out the door so I'm not confident that they were all well commented.

@DanBurton
Copy link
Contributor

Once diagrams is ready for inclusion in LTS 11, please open an issue on https://github.com/fpco/lts-haskell/issues. Thanks!

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