[GHC] #12586: Add types warning to Foreign.C.Types

#12586: Add types warning to Foreign.C.Types -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: | Version: 8.0.1 libraries/base | Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: Documentation Unknown/Multiple | bug Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- 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. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12586 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12586: Add types warning to Foreign.C.Types -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: bug | Status: new Priority: normal | Milestone: Component: libraries/base | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Documentation | Unknown/Multiple bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * owner: => Phyx- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12586#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12586: Add types warning to Foreign.C.Types -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: bug | Status: patch Priority: normal | Milestone: Component: libraries/base | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Documentation | Unknown/Multiple bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2523 Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * status: new => patch * differential: => Phab:D2523 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12586#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12586: Add types warning to Foreign.C.Types
-------------------------------------+-------------------------------------
Reporter: Phyx- | Owner: Phyx-
Type: bug | Status: patch
Priority: normal | Milestone:
Component: libraries/base | Version: 8.0.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Documentation | Unknown/Multiple
bug | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D2523
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Tamar Christina

#12586: Add types warning to Foreign.C.Types -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: bug | Status: closed Priority: normal | Milestone: Component: libraries/base | Version: 8.0.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Documentation | Unknown/Multiple bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2523 Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * status: patch => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12586#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12586: Add types warning to Foreign.C.Types -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: bug | Status: merge Priority: normal | Milestone: Component: libraries/base | Version: 8.0.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Documentation | Unknown/Multiple bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2523 Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * status: closed => merge Comment: Merge if possible, just adds documentation. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12586#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12586: Add types warning to Foreign.C.Types -------------------------------------+------------------------------------- Reporter: Phyx- | Owner: Phyx- Type: bug | Status: closed Priority: normal | Milestone: 8.0.2 Component: libraries/base | Version: 8.0.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Documentation | Unknown/Multiple bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2523 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * milestone: => 8.0.2 Comment: Merged to `ghc-8.0` as 14fb8ef376606a4dd873374a863863357d16ed95. Thanks Tamar! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12586#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC