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

graphviz-2999.20.0.1 does not compile with GHC 8.0.x #34

Closed
peti opened this issue May 23, 2018 · 4 comments
Closed

graphviz-2999.20.0.1 does not compile with GHC 8.0.x #34

peti opened this issue May 23, 2018 · 4 comments

Comments

@peti
Copy link

peti commented May 23, 2018

Citing from https://hydra.nixos.org/build/74574307:

Data/GraphViz/Printing.hs:135:13: error:
    Ambiguous occurrence ‘<>’
    It could refer to either ‘PP.<>’,
                             imported from ‘Text.PrettyPrint.Leijen.Text.Monadic’ at Data/GraphViz/Printing.hs:(79,1)-(85,68)
                          or ‘Data.Semigroup.<>’,
                             imported from ‘Data.Semigroup’ at Data/GraphViz/Printing.hs:105:24-36

Data/GraphViz/Printing.hs:285:16: error:
    Ambiguous occurrence ‘<>’
    It could refer to either ‘PP.<>’,
                             imported from ‘Text.PrettyPrint.Leijen.Text.Monadic’ at Data/GraphViz/Printing.hs:(79,1)-(85,68)
                          or ‘Data.Semigroup.<>’,
                             imported from ‘Data.Semigroup’ at Data/GraphViz/Printing.hs:105:24-36

Data/GraphViz/Printing.hs:285:21: error:
    Ambiguous occurrence ‘<>’
    It could refer to either ‘PP.<>’,
                             imported from ‘Text.PrettyPrint.Leijen.Text.Monadic’ at Data/GraphViz/Printing.hs:(79,1)-(85,68)
                          or ‘Data.Semigroup.<>’,
                             imported from ‘Data.Semigroup’ at Data/GraphViz/Printing.hs:105:24-36

Data/GraphViz/Printing.hs:288:26: error:
    Ambiguous occurrence ‘<>’
    It could refer to either ‘PP.<>’,
                             imported from ‘Text.PrettyPrint.Leijen.Text.Monadic’ at Data/GraphViz/Printing.hs:(79,1)-(85,68)
                          or ‘Data.Semigroup.<>’,
                             imported from ‘Data.Semigroup’ at Data/GraphViz/Printing.hs:105:24-36

Data/GraphViz/Printing.hs:288:35: error:
    Ambiguous occurrence ‘<>’
    It could refer to either ‘PP.<>’,
                             imported from ‘Text.PrettyPrint.Leijen.Text.Monadic’ at Data/GraphViz/Printing.hs:(79,1)-(85,68)
                          or ‘Data.Semigroup.<>’,
                             imported from ‘Data.Semigroup’ at Data/GraphViz/Printing.hs:105:24-36

Data/GraphViz/Printing.hs:291:25: error:
    Ambiguous occurrence ‘<>’
    It could refer to either ‘PP.<>’,
                             imported from ‘Text.PrettyPrint.Leijen.Text.Monadic’ at Data/GraphViz/Printing.hs:(79,1)-(85,68)
                          or ‘Data.Semigroup.<>’,
                             imported from ‘Data.Semigroup’ at Data/GraphViz/Printing.hs:105:24-36

Data/GraphViz/Printing.hs:291:35: error:
    Ambiguous occurrence ‘<>’
    It could refer to either ‘PP.<>’,
                             imported from ‘Text.PrettyPrint.Leijen.Text.Monadic’ at Data/GraphViz/Printing.hs:(79,1)-(85,68)
                          or ‘Data.Semigroup.<>’,
                             imported from ‘Data.Semigroup’ at Data/GraphViz/Printing.hs:105:24-36

Data/GraphViz/Printing.hs:348:37: error:
    Ambiguous occurrence ‘<>’
    It could refer to either ‘PP.<>’,
                             imported from ‘Text.PrettyPrint.Leijen.Text.Monadic’ at Data/GraphViz/Printing.hs:(79,1)-(85,68)
                          or ‘Data.Semigroup.<>’,
                             imported from ‘Data.Semigroup’ at Data/GraphViz/Printing.hs:105:24-36
@ivan-m
Copy link
Owner

ivan-m commented May 23, 2018

That's odd, because it builds for me on Travis-CI.

Is the Nix expression doing any jailbreaking, etc.?

Note that it should be using wl-pprint-text-1.2.* (as it no longer exports Text.PrettyPrint.Leijen.Text.Monadic.<>), which makes me think this is due to removal of version bounds.

@peti
Copy link
Author

peti commented May 23, 2018

You are right, we still had a jailbreak in place in Nix to work around the constraint on previous versions of QuickCheck, but I see that issue no longer exists. When we build the package with wl-pprint-text-1.2.*, the build succeeds, indeed. I do run into test suite failures, however, because the test suite has an undeclared dependency on the neato executable:

  tests/Data/GraphVizSpec.hs:27:
  1) Data.GraphViz FGL Graphs are augmentable
       uncaught exception: IOException of type NoSuchThing (neato: runInteractiveProcess: runInteractiveProcess: exec: does not exist (No such file or directory)) (after 1 test)
       mkGraph [] []

  tests/Data/GraphVizSpec.hs:29:
  2) Data.GraphViz Ensure augmentation is valid
       uncaught exception: IOException of type NoSuchThing (neato: runInteractiveProcess: runInteractiveProcess: exec: does not exist (No such file or directory)) (after 1 test)
       mkGraph [] []

  tests/Data/GraphVizSpec.hs:31:
  3) Data.GraphViz Unique edges in augmented FGL Graphs
       uncaught exception: IOException of type NoSuchThing (neato: runInteractiveProcess: runInteractiveProcess: exec: does not exist (No such file or directory)) (after 1 test)
       mkGraph [] []

@peti
Copy link
Author

peti commented May 23, 2018

Fixed in peti/nixpkgs@28c30b8. Thank you for your help!

@peti peti closed this as completed May 23, 2018
@ivan-m
Copy link
Owner

ivan-m commented May 24, 2018

Not a problem.

Regarding needing pkgs.graphviz, would it be more convenient if the test suite detected if dot and neato were available before running those tests? The main reason I haven't so far is that I wanted to make sure my Travis-CI builds failed when working out how to add them in rather than succeed without running those tests (I was thinking maybe a Cabal flag that's enabled by default adding in the option of doing checking).

peti added a commit to peti/nixpkgs that referenced this issue May 30, 2018
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