[Haskell-cafe] Re[2]: [Haskell] I18N, external strings
Bulat Ziganshin
bulat.ziganshin at gmail.com
Fri Nov 17 06:58:31 EST 2006
Hello Axel,
Friday, November 17, 2006, 11:27:00 AM, you wrote:
> (l_ "Translate this")
> is compiled into a C string constant, that GHC then turns lazily into a
> list of characters, which l_ then turns into an array in C land to pass
> to the gettext function, which, in turn, returns a new C string array
> that has to be turned into a Haskell string again. So I'm glad Lennart
> proposed to turn String into a class which would then make it possible
> to pass a pointer to a contant C string to gettext.
i'm not sure that you are right. GHC can perform compile-time computation
of constant expressions. Don Bruce should know better, once he pointed
out how a String constant can be turned into ByteString one at compile
time
--
Best regards,
Bulat mailto:Bulat.Ziganshin at gmail.com
More information about the Haskell-Cafe
mailing list