Hello Andy

I'm afraid you have too recent a version of gtk2hs installed. You have the 
darcs version installed right?
This has changed the handling of events somewhat. This is a bit of a problem 
since 0.9.12 (the latest actual released version) is too early a release.
The Events module in gtk was changed to an EventM module, so you have three 
possibilities:
1. If you're not interested in using the gtk frontend anyway then just compile 
for vty
   cabal configure -f vty -f -gtk -f -cairo -f -pango
2. If this is really necessary for you then you can go to your gtk2hs darcs 
repository, and do a "darcs changes | less", scroll down to October the 12th 
2008
   you'll see the change which breaks the yi build. You could "darcs unapply" 
to there and then rebuild and install gtk2hs and everything will hopefully 
work. No guarantees though as I haven't tried this.
3. You could fix the yi source to use the new EventM module from gtk2hs.

Of the three, 1 is the least effort but possibly least rewarding unless you 
didn't care about the gtk interface anyway. 3 is the most effort but most 
rewarding, not just to yourself but others as well. 2 is a bit of effort but 
the effort is more or less wasted eventually.

regards
allan



Andy Stewart wrote:
> Hi all,
> 
> I have install GHC 6.10.1 and gtk2hs (darcs version).
> 
> When i use cabal install Yi 0.5.2, i got below error:
> 
> ,----
> | ....
> | 
> | [ 78 of 105] Compiling Yi.Core          ( Yi/Core.hs, dist/build/Yi/Core.o )
> | [ 79 of 105] Compiling Yi.File          ( Yi/File.hs, dist/build/Yi/File.o )
> | [ 80 of 105] Compiling Yi.MiniBuffer    ( Yi/MiniBuffer.hs, 
> dist/build/Yi/MiniBuffer.o )
> | [ 81 of 105] Compiling Yi.Dired         ( Yi/Dired.hs, 
> dist/build/Yi/Dired.o )
> | [ 82 of 105] Compiling Yi.Eval          ( Yi/Eval.hs, dist/build/Yi/Eval.o )
> | [ 83 of 105] Compiling Yi.Mode.Compilation ( Yi/Mode/Compilation.hs, 
> dist/build/Yi/Mode/Compilation.o )
> | [ 84 of 105] Compiling Yi.Mode.Interactive ( Yi/Mode/Interactive.hs, 
> dist/build/Yi/Mode/Interactive.o )
> | [ 85 of 105] Compiling Yi.Mode.Haskell  ( Yi/Mode/Haskell.hs, 
> dist/build/Yi/Mode/Haskell.o )
> | [ 86 of 105] Compiling Yi.Search        ( Yi/Search.hs, 
> dist/build/Yi/Search.o )
> | [ 87 of 105] Compiling Yi.TextCompletion ( Yi/TextCompletion.hs, 
> dist/build/Yi/TextCompletion.o )
> | [ 88 of 105] Compiling Yi.UI.Gtk.ProjectTree ( Yi/UI/Gtk/ProjectTree.hs, 
> dist/build/Yi/UI/Gtk/ProjectTree.o )
> | 
> | Yi/UI/Gtk/ProjectTree.hs:19:40:
> |     Module `Graphics.UI.Gtk' does not export `Event'
> | cabal: Error: some packages failed to install:
> | yi-0.5.2 failed during the building phase. The exception was:
> | exit: ExitFailure 1
> `----
> 
> And i install darcs version of Yi.
> Got same error information.
> 
> So anyone can help me?
> 
> Thank you very much.
> 
>   -- Andy

--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
yi-devel@googlegroups.com
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---

Reply via email to