CLDouble serialization bug in 6.10.1

Hello glasgow-haskell-users, sorry, i tested it only with 6.6 and 6.10.1. testcase available as http://www.haskell.org/bz/ldouble-bug.zip it's as simple as
foreign import ccall unsafe "" client :: Ptr CLDouble -> IO ()
main = with 1.0 client
and
void client(long double *p) { printf ("%f\n",(double)(*p)); }
-- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com

Hello Bulat, Saturday, July 11, 2009, 9:32:43 PM, you wrote: Error remains in 6.10.3 (mingw) version i also got stack trace from Trac trying to report this problem :)))
sorry, i tested it only with 6.6 and 6.10.1. testcase available as http://www.haskell.org/bz/ldouble-bug.zip
it's as simple as
foreign import ccall unsafe "" client :: Ptr CLDouble -> IO ()
main = with 1.0 client
and
void client(long double *p) { printf ("%f\n",(double)(*p)); }
-- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com

Hi Bulat, On Sat, Jul 11, 2009 at 09:32:43PM +0400, Bulat Ziganshin wrote:
foreign import ccall unsafe "" client :: Ptr CLDouble -> IO ()
I'm afraid GHC has never supported CLDouble properly. It's been removed from the HEAD: http://hackage.haskell.org/trac/ghc/ticket/2793 and there's a ticket to add proper support: http://hackage.haskell.org/trac/ghc/ticket/3353 If it's important to you, please add a note to the ticket. Thanks Ian
participants (2)
-
Bulat Ziganshin
-
Ian Lynagh