[project @ 2002-12-13 16:04:56 by simonmar]
authorsimonmar <unknown>
Fri, 13 Dec 2002 16:04:56 +0000 (16:04 +0000)
committersimonmar <unknown>
Fri, 13 Dec 2002 16:04:56 +0000 (16:04 +0000)
commita634e56332b8bac41400b9b344b4fb13dd57fb88
tree82452b1625f79ec2f37e98b2f63a7d89c8055116
parentc986ed0b78218ec0be4c7f360b6060185c39fdf8
[project @ 2002-12-13 16:04:56 by simonmar]
When lexing a primitive string, always make a "narrow" FastString.
Otherwise when the string contains zeros we get a Unicode string,
which luckily turns into the right thing when compiled but confuses the
byte-code generator.

So this fixes the symptom (byte-code generator can't load files
generated with happy -ag), but not the real bug (byte-code generator
can't handle unicode strings).
ghc/compiler/parser/Lex.lhs