typo in decl. of timezone in Time.hsc?
Antony Courtney
antony at galois.com
Thu Jun 3 16:49:45 EDT 2004
I think there may be a typo in libraries/base/System/Time.hsc.
Right now lines 362-364 of Time.hsc are:
#if !defined(mingw32_TARGET_OS)
foreign import ccall unsafe "timezone" timezone :: Ptr CLong
#endif
I think the foreign import of "timezone" on line 363 is missing an
ampersand. That is, I believe this should be:
#if !defined(mingw32_TARGET_OS)
foreign import ccall unsafe "&timezone" timezone :: Ptr CLong
#endif
This would make it consistent with the declaration on line 355, and
would allow it to compile in my environment (building ghc as a
cross-compiler for a target OS in which line 363 of Time.hsc gets compiled).
-Antony
More information about the Glasgow-haskell-bugs
mailing list