Update of /cvsroot/gtk2hs/gtk2hs/demo/treeList
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14288/demo/treeList
Modified Files:
ListTest.hs Makefile
Log Message:
Update all the demos to use the new module names and write new makefiles.
Index: ListTest.hs
===================================================================
RCS file: /cvsroot/gtk2hs/gtk2hs/demo/treeList/ListTest.hs,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- ListTest.hs 11 Apr 2003 15:14:06 -0000 1.6
+++ ListTest.hs 16 Jan 2005 14:15:36 -0000 1.7
@@ -1,8 +1,8 @@
-- Test file for the ListView widget.
module Main(main) where
-import Mogul
-import Events
+import Graphics.UI.Gtk.Mogul
+import Graphics.UI.Gtk.Gdk.Events
main = do
initGUI
Index: Makefile
===================================================================
RCS file: /cvsroot/gtk2hs/gtk2hs/demo/treeList/Makefile,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- Makefile 2 May 2004 13:13:26 -0000 1.2
+++ Makefile 16 Jan 2005 14:15:36 -0000 1.3
@@ -1,11 +1,9 @@
-TOP = ../..
-
-include $(TOP)/mk/config.mk
-MAIN = ListTest.hs
-
-APPNAME = listTest
+PROG = listtest
+SOURCES = ListTest.hs
-NEEDPACKAGES = mogul
+$(PROG) : $(SOURCES)
+ ghc --make $< -o $@ $(HCFLAGS)
-include $(TOP)/mk/common.mk
+clean:
+ rm -f $(SOURCES:.hs=.hi) $(SOURCES:.hs=.o) $(PROG)
|