[Haskell-cafe] Re: ANN: yst 0.2.1

John MacFarlane jgm at berkeley.edu
Mon Aug 3 16:38:30 EDT 2009


+++ John MacFarlane [Aug 03 09 13:23 ]:
> +++ Michael Snoyman [Aug 03 09 22:20 ]:
> >    Hey John,
> > 
> >    I noticed that your code is using the Syck library for Yaml. How were you
> >    able to get it to deal with Unicode characters? I just wrote a new yaml
> >    library based on libyaml if you want to give it a shot (yaml on hackage).
> >    It doesn't support aliases, but is otherwise feature complete.
> > 
> >    Michael
> 
> Oh, rats, I hadn't realized that Syck had that limitation!  I think I
> can work around it, but I'll have to look into it.

Okay, I've found a workaround -- use Syck to parse a bytestring, then do my
own decoding on string buffers in the resulting parse tree. Unicode in
data files now works well.  (Code now on github -- will be released soon.)

John 


More information about the Haskell-Cafe mailing list