Ticket #32 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

Build errors on Threadscope: "ambiguous occurences"

Reported by: rabipelais Owned by:
Priority: major Component: ThreadScope
Version: ThreadScope 0.2.0 Keywords: Build, Cairo
Cc: george.colpitts@…, bob@…


Compiling version 0.2.2 from hackage with Cairo version 12.5.0 (current versions) gives a lot of "ambiguous occurences" errors for the variables height, width and Region on files GUI/Timeline/{Render,Timeline,SaveAs?}.hs, for example:


Ambiguous occurrence `height'
It could refer to either `GUI.Types.height',

imported from `GUI.Types' at GUI/Timeline/Render.hs:19:1-16

or `Graphics.Rendering.Cairo.height',

imported from `Graphics.Rendering.Cairo' at GUI/Timeline/Render.hs:24:1-31
(and originally defined in `Graphics.Rendering.Cairo.Types')

Hiding this variables from the Graphics.Rendering.Cairo package seems to solve the problem.

System: Arch Linux, x86-64


ThreadScope-explicit-cairo-imports.diff (1.7 kB) - added by Bob Ippolito 4 years ago.
Fixes #32 by explicitly importing from Cairo

Change History

Changed 4 years ago by George

  • cc george.colpitts@… added

Changed 4 years ago by Bob Ippolito

Fixes #32 by explicitly importing from Cairo

Changed 4 years ago by Bob Ippolito

  • cc bob@… added

The attached patch should resolve this issue by making the imports from Cairo explicit. I decided not to use hiding as this is more robust against future clashes of this kind.

Changed 4 years ago by MikolajKonarski

Bob Ippolito: thank you for your patch. I've applied it to my github mirror of TS code at https://github.com/Mikolaj/ThreadScope. Not sure when it finds its way to hackage, but I hope it does at some point.

Changed 4 years ago by Bob Ippolito

Is it possible for you to upload a new version to Hackage? According to Hackage, you uploaded the last one: http://hackage.haskell.org/package/threadscope

Changed 3 years ago by jkff

  • status changed from new to closed
  • resolution set to fixed

This problem does not exist in threadscope 0.2.3.

Note: See TracTickets for help on using tickets.