Ticket #32 (closed defect: fixed)

Opened 11 months ago

Last modified 5 months 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@…

Description

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:

GUI/Timeline/Render.hs:258:34:

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

Attachments

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

Change History

Changed 10 months ago by George

  • cc george.colpitts@… added

Changed 10 months ago by Bob Ippolito

Fixes #32 by explicitly importing from Cairo

Changed 10 months 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 9 months 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 9 months 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 5 months 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.