Add doctest examples for Data.Bool.
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 21 Oct 2014 20:02:29 +0000 (15:02 -0500)
committerAustin Seipp <austin@well-typed.com>
Tue, 21 Oct 2014 20:02:29 +0000 (15:02 -0500)
commit9c464f89b90a6b3fb353341e48b3eecb2381d00e
treea4817053f60b3dc68774b7592e6c1ac8fd20e4d6
parent5211673155038dbae3837682c6f737c2446f5c20
Add doctest examples for Data.Bool.

Summary:
Add examples for `Data.Bool`, and rework the existing documentation of
the `bool` function slightly: the `a`,`b` in its explanation were changed
to `x`,`y` to avoid ambiguity with the type variable 'a'.

The examples have been tested, and two trailing spaces were removed.

Reviewers: austin

Reviewed By: austin

Subscribers: thomie, carter, ezyang, simonmar

Differential Revision: https://phabricator.haskell.org/D360
libraries/base/Data/Bool.hs