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

GHC ghc-devs at haskell.org
Mon Jan 16 11:31:06 UTC 2017


#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


More information about the ghc-tickets mailing list