Hi all, here's a curious problem:

I've found that if I already have issued (from a fresh darcs pull):
$ cabal-dev install ./wx ./wxcore ./wxdirect
I can compile (with "ghc -package-conf ..") and run some test code
successfully.

But then, if I do:
$ cabal-dev install ./wxcore
When I try to compile the same test code (still with "ghc -package-conf ..")
I get a bunch of "Ambiguous occurrence" errors[1].

Sure enough, you can:
$ cabal-dev install ./wx
And you'll see that the test code compile now works again.

As a workaround I now always use:
$ cabal-dev install ./wx ./wxcore

But I wondered if this points to an underlying problem, or if someone can
explain why it happens?

Dave,

[1] For example:
PropertyGrid.hs:35:29:
    Ambiguous occurrence `container'
    It could refer to either `Graphics.UI.WX.container',
                             imported from Graphics.UI.WX at
PropertyGrid.hs:6:1-21
                          or `Graphics.UI.WXCore.container',
                             imported from Graphics.UI.WXCore at
PropertyGrid.hs:7:1-25

PropertyGrid.hs:35:43:
    Ambiguous occurrence `margin'
    It could refer to either `Graphics.UI.WX.margin',
                             imported from Graphics.UI.WX at
PropertyGrid.hs:6:1-21
                          or `Graphics.UI.WXCore.margin',
                             imported from Graphics.UI.WXCore at
PropertyGrid.hs:7:1-25

PropertyGrid.hs:36:29:
    Ambiguous occurrence `column'
    It could refer to either `Graphics.UI.WX.column',
                             imported from Graphics.UI.WX at
PropertyGrid.hs:6:1-21
                          or `Graphics.UI.WXCore.column',
                             imported from Graphics.UI.WXCore at
PropertyGrid.hs:7:1-25
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
wxhaskell-devel mailing list
wxhaskell-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel

Reply via email to