text-icu icon indicating copy to clipboard operation
text-icu copied to clipboard

hsc2hs #const U_NO_NUMERIC does not work with --cross-compile

Open singpolyma opened this issue 11 years ago • 1 comments

This seems to be because the way --cross-compile checks if something is valid is by using it as an array size, but this constant is a double, so that's not allowed.

In general #const says it is for longs, but this constant could be a long, it's just cast to double for some reason.

I'm working around it for now by doing the hsc2hs call without --cross-compile (since the constants are the same on my host system) and building against the result.

singpolyma avatar Oct 02 '14 18:10 singpolyma

Related: https://ghc.haskell.org/trac/ghc/ticket/7983

singpolyma avatar Oct 02 '14 18:10 singpolyma