base: Document caveats about Control.Concurrent.Chan
authorErik de Castro Lopo <erikd@mega-nerd.com>
Mon, 28 Mar 2016 12:52:35 +0000 (14:52 +0200)
committerBen Gamari <ben@smart-cactus.org>
Tue, 29 Mar 2016 10:40:22 +0000 (12:40 +0200)
commit50a2b6af30f86a96384f608b145eb453ba45bcb4
tree8b55e3c5661411c6ec2d59af837434317f2dd433
parent5f32cf1dc4e15f28b5b6e516fa32e5a4bd1e498f
base: Document caveats about Control.Concurrent.Chan

These are implemented using `MVars` which have known caveats. Suggest
the use of `TChan` from the stm library instead.

Test Plan: n/a

Reviewers: austin, hvr, bgamari

Reviewed By: bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2047

(cherry picked from commit 0f0c1387882be6a19af2cf3e6a005d70a3e84ae7)
libraries/base/Control/Concurrent/Chan.hs