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)
_______________________________________________
Haskell-Cafe mailing list
Haskel...@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
> == wxhaskell-0.9.4 ==
Ditch it; it hates ghc 6.6. darcs get http://darcs.haskell.org/
wxhaskell
I can't help with the others.
--
brandon s. allbery [linux,solaris,freebsd,perl] all...@kf8nh.com
system administrator [openafs,heimdal,too many hats] all...@ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
using this wxhaskell and the (just-in-time re-released) yampa (it
built/installed fine, unlike the old afrp release i tried earlier), i
tried again to build wxfruit:
$ ghc --make WXFruit.hs
WXFruit.hs:12:17:
Could not find module `Graphics.UI.WX':
looking into this, it appears that either wxhaskell has recently
(judging from the docs on the official wxhaskell site) undergone a big
reorg, or i'm still missing some wxhaskell libs. does this mean that i
won't be able to get wxfruit working (without hacking it to update its
usage of wxhaskell)?
yang
On 1/7/07, Brandon S. Allbery KF8NH allbery-at-ece.cmu.edu
now the error i get from wxfruit is:
$ ghc --make WXFruit.hs
[1 of 1] Compiling WXFruit ( WXFruit.hs, WXFruit.o )
WXFruit.hs:81:31: parse error on input `->'
On 1/7/07, Brandon S. Allbery KF8NH allbery-at-ece.cmu.edu
|haskell-cafe| <...> wrote:
>
> On Jan 7, 2007, at 20:54 , Yang wrote:
>
> > WXFruit.hs:12:17:
> > Could not find module `Graphics.UI.WX':
>
> Hm. Did you install the whole thing? You need to do "make; make
> install; make wx; make wx-install" to get all of it --- and
> Graphics.UI.WX is in the latter group, IIRC. If you do only the
> first part then you only get wxcore, which isn't so useful.