[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 <ben@…>): In [changeset:"0d769d5b96232ee0fe5a44f2ce5717bdb0e7eaa3/ghc" 0d769d5b/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="0d769d5b96232ee0fe5a44f2ce5717bdb0e7eaa3" Add CBool to Foreign.C.Types This adds a `CBool` type wrapping C99's `bool`, i.e., an `unsigned char`. Fixes #13136. Test Plan: ./validate on Tier-1 platforms Reviewers: austin, hvr, simonmar, bgamari Reviewed By: simonmar, bgamari Subscribers: thomie, erikd Differential Revision: https://phabricator.haskell.org/D2982 GHC Trac Issues: #13136 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13136#comment:2> 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: 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