Add CBool to Foreign.C.Types
authorRyan Scott <ryan.gl.scott@gmail.com>
Wed, 18 Jan 2017 21:24:17 +0000 (16:24 -0500)
committerBen Gamari <ben@smart-cactus.org>
Wed, 18 Jan 2017 22:39:48 +0000 (17:39 -0500)
commit0d769d5b96232ee0fe5a44f2ce5717bdb0e7eaa3
treebecb8c6897014d5cae795d0c210ee87a67a94ed0
parent181688abae5c0b32237a5bd783dfc9667641cce2
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
libraries/base/Foreign/C/Types.hs
libraries/base/aclocal.m4
libraries/base/changelog.md
libraries/base/configure.ac