From: Andy S. <laz...@gm...> - 2010-12-17 18:05:31
|
Hi aditya, In Notebook demo, i show how to play widget GtkSpinner. GtkSpinner is *new* widget bring in GTK+2.20.0 I think your GTK+ is older than 2.20.0 that gtk2hs not compile GtkSpinner APIs. You can use command pkg-config --modversion gtk+-2.0 check your GTK+ version. I believe this problem will fix after update your GTK+ Cheers, -- Andy aditya siram <adi...@gm...> writes: > Hi all, > When I try and compile the notebook app in ../demo/notebook I get the > following error: > > ghc --make Notebook.hs -o notebook > [1 of 1] Compiling Main ( Notebook.hs, Notebook.o ) > > Notebook.hs:13:35: > Not in scope: type constructor or class `Spinner' > > Notebook.hs:77:11: Not in scope: `spinnerNew' > > Notebook.hs:86:27: Not in scope: `spinner' > > Notebook.hs:99:2: Not in scope: `spinnerStart' > > Notebook.hs:107:2: Not in scope: `spinnerStop' > make: *** [notebook] Error 1 > > Hayoo tells me that spinnerNew is in Graphics.UI.Gtk.Display.Spinner. > I loaded that module into GHCi and invoked spinnerNew with the same > "Not in scope ..." error. > > I have this working perfectly on my Ubuntu machine. > > The other demos seem to work. Any advice would be appreciated. > > -deech > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d |