[Haskell-cafe] no end to the build errors! (wxhaskell, afrp)

Yang hehx0sk02 at sneakemail.com
Sun Jan 7 17:56:07 EST 2007


argh, still more build errors on various fronts. i'm using ghc-6.6 on
fedora core 5 unless otherwise noted. thanks in advance for help on
any of these.

a lot of this is part of my attempt to learn more about and play with
a high-level functional gui library (and, of course, for getting a
better grasp on what frp and arrows are all about) after realizing
that i would never ever be able to get fruit working. i have so far
found wxfruit (built on wxhaskell) and FG (built on gtk). i am
interested in implementing a similarly 'highly-declarative' ui library
built on hscurses.widgets.

== wxhaskell-0.9.4 ==

$ make
...
wx/src/Graphics/UI/WX/Types.hs:94:0:
    Bad interface file: out/wx/imports/Graphics/UI/WXCore/Types.hi
        Something is amiss; requested module
wx:Graphics.UI.WXCore.Types differs from name found in the interface
file wxcore:Graphics.UI.WXCore.Types
make: *** [out/wx/imports/Graphics/UI/WX/Types.o] Error 1

== afrp-0.4 ==

after removing all references to packages 'lang' and 'concurrent' and
changing all "import IORef" to "import Data.IORef as IORef":

ghc -c  -fglasgow-exts -O    -o AFRPUtilities.o AFRPUtilities.hs

AFRPUtilities.hs:169:46:
    Ambiguous occurrence `>>^'
    It could refer to either `>>^', defined at AFRPUtilities.hs:106:2
                          or `>>^', imported from AFRP at
AFRPUtilities.hs:90:0-10

AFRPUtilities.hs:178:27:
    Ambiguous occurrence `>>^'
    It could refer to either `>>^', defined at AFRPUtilities.hs:106:2
                          or `>>^', imported from AFRP at
AFRPUtilities.hs:90:0-10

AFRPUtilities.hs:184:46:
    Ambiguous occurrence `>>^'
    It could refer to either `>>^', defined at AFRPUtilities.hs:106:2
                          or `>>^', imported from AFRP at
AFRPUtilities.hs:90:0-10

AFRPUtilities.hs:246:32:
    Ambiguous occurrence `^>>'
    It could refer to either `^>>', defined at AFRPUtilities.hs:103:2
                          or `^>>', imported from AFRP at
AFRPUtilities.hs:90:0-10

AFRPUtilities.hs:247:33:
    Ambiguous occurrence `^>>'
    It could refer to either `^>>', defined at AFRPUtilities.hs:103:2
                          or `^>>', imported from AFRP at
AFRPUtilities.hs:90:0-10

AFRPUtilities.hs:304:62:
    Ambiguous occurrence `>>^'
    It could refer to either `>>^', defined at AFRPUtilities.hs:106:2
                          or `>>^', imported from AFRP at
AFRPUtilities.hs:90:0-10

== FG ==

$ ghc --make FG.hs
[1 of 1] Compiling FG               ( FG.hs, FG.o )

FG.hs:115:31: Module `Graphics.UI.Gtk' does not export `button'

FG.hs:115:39: Module `Graphics.UI.Gtk' does not export `visible'

when removing those two `hiding` params:

[1 of 1] Compiling FG               ( FG.hs, FG.o )

FG.hs:562:69:
    Couldn't match expected type `w' (a rigid variable)
           against inferred type `Bool'
      `w' is bound by the polymorphic type
            `forall w. (ToggleButtonClass w) => w -> IO ()'
            at FG.hs:562:54-92
      Expected type: w -> IO ()
      Inferred type: Bool -> IO ()
    In the first argument of `ToggleButtonP', namely
        `(toggleButtonSetActive p)'
    In the expression: ToggleButtonP (toggleButtonSetActive p)

FG.hs:587:67:
    Couldn't match expected type `w' (a rigid variable)
           against inferred type `Bool'
      `w' is bound by the polymorphic type
            `forall w. (CheckButtonClass w) => w -> IO ()'
            at FG.hs:587:53-90
      Expected type: w -> IO ()
      Inferred type: Bool -> IO ()
    In the first argument of `CheckButtonP', namely
        `(toggleButtonSetActive p)'
    In the expression: CheckButtonP (toggleButtonSetActive p)


More information about the Haskell-Cafe mailing list