logo       

typo in decl. of timezone in Time.hsc?: msg#00006

lang.haskell.glasgow.bugs

Subject: typo in decl. of timezone in Time.hsc?

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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise