Opened 5 years ago

Closed 5 years ago

#7218 closed feature request (fixed)

No type level distinction between BroadcastTChan and TChan

Reported by: timthelion Owned by: simonmar
Priority: normal Milestone:
Component: libraries (other) Version: 7.4.2
Keywords: STM TChan Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


There is no type level distinction between BroadcastTChan(added in STM 2.4) and TChans. Because of this, readTChan throws a non informative runtime error "blocked indefinitely" when passed a broadcast chan. Can we get this fixed ASAP before it gets cemented into the type system?

Even just a more informative error message would be a huge improvement!

Change History (2)

comment:1 Changed 5 years ago by simonmar

difficulty: Unknown
Owner: set to simonmar

Fair point. I'll see what I can do.

comment:2 Changed 5 years ago by simonmar

Resolution: fixed
Status: newclosed
commit 4965c0139de186c8322cb48b52550acb4b8d9afa
Author: Simon Marlow <>
Date:   Thu Sep 6 09:46:20 2012 +0100

    Throw an exception when reading from a broadcast channel (#7218)
Note: See TracTickets for help on using tickets.