#7218: No type level distinction between BroadcastTChan and TChan
------------------------------+---------------------------------------------
 Reporter:  timthelion        |          Owner:                   
     Type:  feature request   |         Status:  new              
 Priority:  normal            |      Component:  libraries (other)
  Version:  7.4.2             |       Keywords:  STM TChan        
       Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple 
  Failure:  None/Unknown      |       Testcase:                   
Blockedby:                    |       Blocking:                   
  Related:                    |  
------------------------------+---------------------------------------------
 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!

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7218>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to