Context Navigation

Ticket #32
(closed defect: fixed)

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.

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.