
Hi, Today, when I compiled gtk2hs, I got this: cairo/Graphics/Rendering/Cairo.hs.pp:264:0: Failed to load interface for `Data.Array.Base': it is a member of the hidden package `array-0.2.0.0' Use -v to see a list of the files searched for. As usual, I searched for the resolvement. No luck. And seems like this problem (not particularly to this package) is very common. I wonder how to resolve it? -- 竹密岂妨流水过 山高哪阻野云飞

On Thu, Nov 12, 2009 at 7:32 AM, Magicloud Magiclouds
Hi, Today, when I compiled gtk2hs, I got this: cairo/Graphics/Rendering/Cairo.hs.pp:264:0: Failed to load interface for `Data.Array.Base': it is a member of the hidden package `array-0.2.0.0' Use -v to see a list of the files searched for. As usual, I searched for the resolvement. No luck. And seems like this problem (not particularly to this package) is very common. I wonder how to resolve it?
Is it compiled using Cabal? In that case you need to add array as a dependency. /m -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe

No, it is not. I used configure/make way.
Well I just noticed that there is a "hide-all-package" options to ghc.
I do not know why. Maybe the author went crazy.
On Thu, Nov 12, 2009 at 5:09 PM, Magnus Therning
On Thu, Nov 12, 2009 at 7:32 AM, Magicloud Magiclouds
wrote: Hi, Today, when I compiled gtk2hs, I got this: cairo/Graphics/Rendering/Cairo.hs.pp:264:0: Failed to load interface for `Data.Array.Base': it is a member of the hidden package `array-0.2.0.0' Use -v to see a list of the files searched for. As usual, I searched for the resolvement. No luck. And seems like this problem (not particularly to this package) is very common. I wonder how to resolve it?
Is it compiled using Cabal? In that case you need to add array as a dependency.
/m
-- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe
-- 竹密岂妨流水过 山高哪阻野云飞

On Thu, Nov 12, 2009 at 9:11 AM, Magicloud Magiclouds
No, it is not. I used configure/make way. Well I just noticed that there is a "hide-all-package" options to ghc. I do not know why. Maybe the author went crazy.
Chances are the auther DIDN'T go crazy :-) It's a common practice to hide all packages, and then only bring the ones needed into visibility. I doubt that Gtk2hs is completely self contained, so somewhere in there is the directives that makes the needed packages visible again. Just add array and you should be past this particular hurdle. /M -- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe

Just joking. But still, since gtk2hs still using the configure/make
way, it is complex to add another option to the system. I tried to add
array to build-depends of Cairo.cabal, no luck.
On Thu, Nov 12, 2009 at 5:28 PM, Magnus Therning
On Thu, Nov 12, 2009 at 9:11 AM, Magicloud Magiclouds
wrote: No, it is not. I used configure/make way. Well I just noticed that there is a "hide-all-package" options to ghc. I do not know why. Maybe the author went crazy.
Chances are the auther DIDN'T go crazy :-)
It's a common practice to hide all packages, and then only bring the ones needed into visibility. I doubt that Gtk2hs is completely self contained, so somewhere in there is the directives that makes the needed packages visible again. Just add array and you should be past this particular hurdle.
/M
-- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe
-- 竹密岂妨流水过 山高哪阻野云飞

Magicloud Magiclouds
Just joking. But still, since gtk2hs still using the configure/make way, it is complex to add another option to the system. I tried to add array to build-depends of Cairo.cabal, no luck. Yes, it's not handy that gtk2hs can't use Cabal. But i think this is not easy when gtk2hs contain some many modules.
-- Andy
On Thu, Nov 12, 2009 at 5:28 PM, Magnus Therning
wrote: On Thu, Nov 12, 2009 at 9:11 AM, Magicloud Magiclouds
wrote: No, it is not. I used configure/make way. Well I just noticed that there is a "hide-all-package" options to ghc. I do not know why. Maybe the author went crazy.
Chances are the auther DIDN'T go crazy :-)
It's a common practice to hide all packages, and then only bring the ones needed into visibility. I doubt that Gtk2hs is completely self contained, so somewhere in there is the directives that makes the needed packages visible again. Just add array and you should be past this particular hurdle.
/M
-- Magnus Therning (OpenPGP: 0xAB4DFBA4) magnus@therning.org Jabber: magnus@therning.org http://therning.org/magnus identi.ca|twitter: magthe
participants (3)
-
Andy Stewart
-
Magicloud Magiclouds
-
Magnus Therning