[Haskell-cafe] Re: [Haskell] ANNOUNCE: jhc 0.7.4

Antoine Latter aslatter at gmail.com
Sun Jul 11 02:20:26 EDT 2010


On Sat, Jul 10, 2010 at 4:33 PM, John Meacham <john at repetae.net> wrote:
> On Sat, Jul 10, 2010 at 04:01:53PM -0500, Antoine Latter wrote:
>> * running DrIFT on src/E/TypeCheck.hs fails with an illegal
>> bytesequence in hGetContents. I'm guessing that this is only an issue
>> when building DrIFT with GHC 6.12+, and that the file contains bytes
>> illegal in UTF8. I deleted everything funny looking in the file and
>> then it went smooth
>
> Hi, are you compiling from the tarball or the darcs repository? the
> tarball shouldn't require DrIFT to be installed. I had not tested DrIFT
> with 6.12 but that file should be in UTF8. Hmm... on OSX, is the default
> locale a UTF8 one? does ghc 6.12 properly encode to/from utf8 on it by
> defualt? could you check, I don't have a mac handy.
>

Okay, I was using a third-party terminal app for which I don't know
how to make print out UTF8. Things are better if I use a different
one.

I was going to look in to how to make DrIFT read and write UTF8
regardless of locale, but the IO layer for DrIFT is surprisingly
complex, so never mind that.

Now compiling with jhc I end up with:
hs.out_code.c:85:2: error: #error Could not determine Byte Order

Attached is a patch which fixes this for me, although I only have a
Mac to test it on.

Antoine
-------------- next part --------------
A non-text attachment was scrubbed...
Name: endian.dpatch
Type: application/octet-stream
Size: 914 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20100711/1d13bbe7/endian.obj


More information about the Haskell-Cafe mailing list