[GHC] #13136: Foreign.C.Types does not have a CBool type

#13136: Foreign.C.Types does not have a CBool type -------------------------------------+------------------------------------- Reporter: simonmar | Owner: Type: bug | Status: new Priority: high | Milestone: 8.2.1 Component: | Version: 8.0.1 libraries/base | Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- We should add a `CBool` corresponding to C99's `bool`. Using Haskell's `Bool` can lead to unexpected errors, because it corresponds to `HsBool`, which is word-sized whereas C99 `bool` is unsigned char. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13136 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13136: Foreign.C.Types does not have a CBool type -------------------------------------+------------------------------------- Reporter: simonmar | Owner: Type: bug | Status: patch Priority: high | Milestone: 8.2.1 Component: libraries/base | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2982 Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * status: new => patch * differential: => Phab:D2982 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13136#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13136: Foreign.C.Types does not have a CBool type
-------------------------------------+-------------------------------------
Reporter: simonmar | Owner:
Type: bug | Status: patch
Priority: high | Milestone: 8.2.1
Component: libraries/base | Version: 8.0.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D2982
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#13136: Foreign.C.Types does not have a CBool type -------------------------------------+------------------------------------- Reporter: simonmar | Owner: Type: bug | Status: closed Priority: high | Milestone: 8.2.1 Component: libraries/base | Version: 8.0.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2982 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => closed * resolution: => fixed Comment: Fixed. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13136#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC