
#14267: CLong is not what it seems on Windows -------------------------------------+------------------------------------- Reporter: nh2 | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.4.1 Component: Compiler | Version: 8.2.1 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: Documentation | Unknown/Multiple bug | Test Case: Blocked By: | Blocking: Related Tickets: #14262 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Phyx-): These types are generated by configure checks, so they're dependent on the machine that builds the docs. On a Windows machine it says {{{ /* Define to Haskell type for long */ #define HTYPE_LONG Int32 }}} so the types are fine, and the documentation would be correct if it was generated on Windows. This is a short coming of the haddock infrastructure and the main reason I do not like configure based packages. Also this isn't the biggest problem at all, the documentation of the Win32 package is mostly always wrong, since it's generated on Linux, so it points to base documentation for Linux. I have added disclaimers to the primitive types on Win32. Maybe one should be added here as well. Internally these types are to be avoided and instead use fixed width C99 types, which is what the majority of the Windows code is being converted to. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14267#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler