[Haskell-cafe] Non-ASCII characters in .cabal files break Haddock?
ross at soi.city.ac.uk
Wed Jan 20 09:15:42 EST 2010
On Tue, Jan 19, 2010 at 01:00:07PM -0800, John Millikin wrote:
> I recently uploaded a package to Hackage, which contains a
> non-ASCII character in the .cabal file. That file is encoded with
> UTF-8, and it displays fine in Vim, Firefox, and even the Hackage
> package landing page. However, Haddock is failing to build it --
> apparently it can't handle UTF-8 encoded text properly.
It seems that openTempFile writes the text without any encoding (#3832).
Haddock quite reasonably fails because it expects encoded text.
> In documentation sections, Haddock supports special syntax for
> escaping non-ASCII. Is there any equivalent syntax for Cabal files?
The Description field is haddock markup, so that should be a workaround.
(or you could use more naive spelling)
More information about the Haskell-Cafe