hvr / ThreadScope

Official upstream repo for ThreadScope (issue tracker still using trac)
http://trac.haskell.org/ThreadScope
Other
0 stars 0 forks source link

Build errors on Threadscope: "ambiguous occurences" #30

Open ghc-mirror opened 10 years ago

ghc-mirror commented 10 years ago

Original reporter: sebas.chinoir@

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 eitherGUI.Types.height', imported from GUI.Types' at GUI/Timeline/Render.hs:19:1-16 orGraphics.Rendering.Cairo.height', imported from Graphics.Rendering.Cairo' at GUI/Timeline/Render.hs:24:1-31 (and originally defined inGraphics.Rendering.Cairo.Types')

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

System: Arch Linux, x86-64

ghc-mirror commented 10 years ago

Original reporter: bob@

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.

ghc-mirror commented 10 years ago

Original reporter: 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.

ghc-mirror commented 10 years ago

Original reporter: bob@

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