Ticket #5911: 0001-TChan-Rearrange-the-module-header-again.patch

File 0001-TChan-Rearrange-the-module-header-again.patch, 1.1 KB (added by joeyadams, 2 years ago)

Rearrange module header again, putting broadcast channel stuff (including dupTChan) in one place

  • Control/Concurrent/STM/TChan.hs

    From 3952a667ada6f55c9f0ab9a5bda0d1b1ff4b3495 Mon Sep 17 00:00:00 2001
    From: Joey Adams <joeyadams3.14159@gmail.com>
    Date: Fri, 2 Mar 2012 22:33:58 -0500
    Subject: [PATCH] TChan: Rearrange the module header again
    
    This puts the broadcast channel stuff (including dupTChan) in one place.
    ---
     Control/Concurrent/STM/TChan.hs |   14 ++++++++------
     1 files changed, 8 insertions(+), 6 deletions(-)
    
    diff --git a/Control/Concurrent/STM/TChan.hs b/Control/Concurrent/STM/TChan.hs
    index 9666f4c..1c283dc 100644
    a b  
    2222 
    2323module Control.Concurrent.STM.TChan ( 
    2424#ifdef __GLASGOW_HASKELL__ 
    25         -- * TChans 
     25        -- * The TChan type 
    2626        TChan, 
    2727 
    28         -- ** Construction 
     28        -- * Construction 
    2929        newTChan, 
    3030        newTChanIO, 
    31         newBroadcastTChan, 
    32         newBroadcastTChanIO, 
    33         dupTChan, 
    3431 
    3532        -- * Reading and writing 
    3633        readTChan, 
    module Control.Concurrent.STM.TChan ( 
    3936        tryPeekTChan, 
    4037        writeTChan, 
    4138        unGetTChan, 
    42         isEmptyTChan 
     39        isEmptyTChan, 
     40 
     41    -- * Using TChan as a broadcast channel 
     42        newBroadcastTChan, 
     43        newBroadcastTChanIO, 
     44        dupTChan 
    4345#endif 
    4446  ) where 
    4547