Skip to content

hsc2hs and utf-8

hsc2hs is broken on a source file containing certain utf-8 characters in the comments.

Attached is an example module.

The probable culprit is:

    showCChar c    = ['\\',
                      intToDigit (ord c `quot` 64),
                      intToDigit (ord c `quot` 8 `mod` 8),
                      intToDigit (ord c          `mod` 8)]

in hsc2hs code.

Edited by Ian Lynagh -
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information