[Haskell-cafe] Re: ANN: Yi 0.4.1

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Sun Jul 27 17:20:35 EDT 2008


On Sun, 2008-07-27 at 20:58 +0000, Jean-Philippe Bernardy wrote:
> Don Stewart <dons <at> galois.com> 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



More information about the Haskell-Cafe mailing list