Skip to content

Add types warning to Foreign.C.Types

Documentation for the base types in Foreign.C are incorrect on Hackage.

Not really incorrect but only valid for the platform for which Haddock runs.

As an example it says for CLong

newtype CLong = CLong Int64

Which is Incorrect on Windows. I don't know a technical solution for this, so I'm proposing a non-technical one: Add a warning on the top of the Foreign-C-Types to indicate that these types may differ on various platforms.

Trac metadata
Trac field Value
Version 8.0.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component libraries/base
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information