
I'm very pleased to announce the 0.4.1 release of the Yi editor. == Yi == Yi is a text editor written and extensible in Haskell. The long-term goal of the Yi project is to provide the editor of choice for Haskell programmers. In the meantime, we have fun by hacking an editor in a decent language :) Yi is not a finished product. This is an alpha-quality release. However, Yi has become a lot more accessible than previously, so if you feel like testing it, now might be a good time to take a look. == Installation == Using cabal install: cabal install yi-0.4.1 If you want gtk support, first install gtk2hs 0.9.13. If you want vty support, pass the -fvty option to cabal install. == Features == * A purely functional editor core; * Key-bindings written as parsers of the input; * Emacs, Vim and (partial) Cua emulations provided by default; * Vty, Gtk2Hs, and (experimental) Cocoa front-ends; * Static configuration (XMonad style) for fast load; * Simple Haskell support: * Syntax highlighting * Auto-indentation * Call cabal-build within the editor == Links == * download: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/yi * FAQ: http://haskell.org/haskellwiki/Yi/FAQ * homepage: http://haskell.org/haskellwiki/Yi * check and report issues: http://code.google.com/p/yi-editor/issues/list * darcs repository: http://code.haskell.org/yi * get involved: mailto:yi-devel@googlegroups.com * release notes: http://code.google.com/p/yi-editor/wiki/ReleaseNotes0o4 == Acks == This release is brought to you by: Allan Clark Andrew Birkett Corey O'Connor Duncan Coutts Evan Martin Fraser Wilson Gustav Munkby Gwern Branwen Jean-Philippe Bernardy Krasimr Angelov Nicolas Pouillard Sean Leather Thomas Schilling and all the contributors to the previous versions.

Fantastic release, thank you! It's never been so easy to start
playing with Yi. : )
Paulo
On Sun, Jul 27, 2008 at 10:08 AM, Jean-Philippe Bernardy
I'm very pleased to announce the 0.4.1 release of the Yi editor.
== Yi == Yi is a text editor written and extensible in Haskell. The long-term goal of the Yi project is to provide the editor of choice for Haskell programmers. In the meantime, we have fun by hacking an editor in a decent language :)
Yi is not a finished product. This is an alpha-quality release. However, Yi has become a lot more accessible than previously, so if you feel like testing it, now might be a good time to take a look.
== Installation ==
Using cabal install:
cabal install yi-0.4.1
If you want gtk support, first install gtk2hs 0.9.13. If you want vty support, pass the -fvty option to cabal install.
== Features == * A purely functional editor core; * Key-bindings written as parsers of the input; * Emacs, Vim and (partial) Cua emulations provided by default; * Vty, Gtk2Hs, and (experimental) Cocoa front-ends; * Static configuration (XMonad style) for fast load; * Simple Haskell support: * Syntax highlighting * Auto-indentation * Call cabal-build within the editor
== Links == * download: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/yi * FAQ: http://haskell.org/haskellwiki/Yi/FAQ * homepage: http://haskell.org/haskellwiki/Yi * check and report issues: http://code.google.com/p/yi-editor/issues/list * darcs repository: http://code.haskell.org/yi * get involved: mailto:yi-devel@googlegroups.com * release notes: http://code.google.com/p/yi-editor/wiki/ReleaseNotes0o4
== Acks ==
This release is brought to you by:
Allan Clark Andrew Birkett Corey O'Connor Duncan Coutts Evan Martin Fraser Wilson Gustav Munkby Gwern Branwen Jean-Philippe Bernardy Krasimr Angelov Nicolas Pouillard Sean Leather Thomas Schilling
and all the contributors to the previous versions.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Niklas Broberg
Hi Jean-Philippe,
Using cabal install:
cabal install yi-0.4.1
when I do this on my Windows machine, cabal-install tries to download the unix-2.3.0.0 package, which clearly won't work. How do I get yi to install on Windows?
Vty frontend does not work on win32, so you must install gtk2hs (latest) beforehand. Additionally, I recommend to use cabal install yi-0.4.1 -f-vty -fgtk to force choosing the right options. Cheers, JP.

jeanphilippe.bernardy:
I'm very pleased to announce the 0.4.1 release of the Yi editor.
== Yi == Yi is a text editor written and extensible in Haskell. The long-term goal of the Yi project is to provide the editor of choice for Haskell programmers. In the meantime, we have fun by hacking an editor in a decent language :)
Yi is not a finished product. This is an alpha-quality release. However, Yi has become a lot more accessible than previously, so if you feel like testing it, now might be a good time to take a look.
While the vty frontend is working, the gtk / pango frontends are erroring for me with, $ yi -f pango Launching custom yi: "/home/dons/.yi/yi-x86_64-linux" yi: exception :: System.Glib.GError.GError Anyone seen this? -- Don

On Sun, 2008-07-27 at 20:58 +0000, Jean-Philippe Bernardy wrote:
Don Stewart
writes: $ yi -f pango Launching custom yi: "/home/dons/.yi/yi-x86_64-linux" yi: exception :: System.Glib.GError.GError
Anyone seen this?
Consistently on x64. The pango stuff is generally unstable anyway. I'm not sure what's to blame.
That's interesting. That's a Haskell exception (dynamic type). I doubt it's being thrown by the Pango code, there's only one use of it there, in parseMarkup and that should throw parsing errors pretty much independent of platform. You can catch those GError exceptions and print more interesting info. Use:
catchGError (do ... ...) (\(GError dom code msg) -> fail msg)
Duncan

I had the same problem on x86_64 linux using the Gtk front and no custom config with the current Yi on Hackage (0.4.3). Using catchGError revealed: user error (Failed to open file '/home/bernardy/.cabal/share/yi-0.4.3/art/yi+lambda-fat.32.png': No such file or directory) Tracked down to Paths_yi.hs : bindir = "/home/bernardy/.cabal/bin" libdir = "/home/bernardy/.cabal/lib/yi-0.4.3/ghc-6.8.3" datadir = "/home/bernardy/.cabal/share/yi-0.4.3" libexecdir = "/home/bernardy/.cabal/libexec" I just built the latest Yi from Darcs and this seems to have been fixed. - Jon Duncan Coutts wrote:
On Sun, 2008-07-27 at 20:58 +0000, Jean-Philippe Bernardy wrote:
Don Stewart
writes: $ yi -f pango Launching custom yi: "/home/dons/.yi/yi-x86_64-linux" yi: exception :: System.Glib.GError.GError
Anyone seen this?
Consistently on x64. The pango stuff is generally unstable anyway. I'm not sure what's to blame.
That's interesting. That's a Haskell exception (dynamic type). I doubt it's being thrown by the Pango code, there's only one use of it there, in parseMarkup and that should throw parsing errors pretty much independent of platform.
You can catch those GError exceptions and print more interesting info. Use:
catchGError (do ... ...) (\(GError dom code msg) -> fail msg)
Duncan
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Thanks, after installing gtk2hs and using the flags you told me I managed to install it just fine. However...
$ yi -f pango Launching custom yi: "/home/dons/.yi/yi-x86_64-linux" yi: exception :: System.Glib.GError.GError
Anyone seen this?
Consistently on x64. The pango stuff is generally unstable anyway. I'm not sure what's to blame.
... I got this error too, and I'm on Win32. :-( Cheers, /Niklas

Niklas Broberg
Thanks, after installing gtk2hs and using the flags you told me I managed to install it just fine. However...
Good :)
The pango stuff is generally unstable anyway. I'm not sure
what's to blame.
... I got this error too, and I'm on Win32.
The gtk frontend should not suffer from this: yi -fgtk -- JP.

Niklas Broberg
The gtk frontend should not suffer from this:
yi -fgtk
C:\Documents and Settings\Niklas Broberg>yi -fgtk yi: exception :: System.Glib.GError.GError
I'm out of ideas. Maybe you could ask Krasimir Angelov, which did the win32 port.
ps. If I installed it with -f-vty -fgtk, shouldn't gtk be the default when running?
It is; I was just making sure. Cheers, JP.

On Mon, 2008-07-28 at 07:39 +0000, Jean-Philippe Bernardy wrote:
Niklas Broberg
writes: The gtk frontend should not suffer from this:
yi -fgtk
C:\Documents and Settings\Niklas Broberg>yi -fgtk yi: exception :: System.Glib.GError.GError
I'm out of ideas. Maybe you could ask Krasimir Angelov, which did the win32 port.
Try catching the exception and see what message it contains. Use catchGError. Duncan

On Sun, Jul 27, 2008 at 03:08:04PM +0000, Jean-Philippe Bernardy wrote:
I'm very pleased to announce the 0.4.1 release of the Yi editor.
great, i can't wait to check it out ... i get the following error when installing via hackage/cabal (ghc 6.8.1, cabal 1.4.0.1): Yi/Buffer.hs:253:0: No instance for (Typeable4 RWS) arising from the 'deriving' clause of a data type declaration at Yi/Buffer.hs:(253,0)-(254,101) Possible fix: add an instance declaration for (Typeable4 RWS) When deriving the instance for (Typeable1 BufferM) Yi/Buffer.hs:256:0: Can't make a derived instance of `Typeable4 RWS' (even with cunning newtype deriving: the representation type has wrong kind) In the stand-alone deriving instance for `Typeable4 RWS' any ideas what's going wrong? is it finally time to upgrade my ghc installation? <sk>
participants (7)
-
Don Stewart
-
Duncan Coutts
-
Jean-Philippe Bernardy
-
Jon Strait
-
Niklas Broberg
-
Paulo Tanimoto
-
stefan kersten