I'm not at all following this yet, but ghc-7.8 does seem to be involved. It 
seems that a nearly minimal example is already present in the tutorial -- 
presumably `work.hs` printed at the end of it used to work fine, but with 
ghc-7.8 I get: 

    1
    2
    3
    ... etc ..
    99
    100
    101
    102
    103
    104
    hi
    Worker #2: Processed 2
    Worker #1: Processed 1
    Worker #3: Processed 3
    105
    106
    107
    hoWorker #1: Processed 5
    Worker #2: Processed 4
    Worker #3: Processed 6
    work: thread blocked indefinitely in an STM transaction

(here I typed input, but the result is the same if I do nothing.)

By contrast the simpler `main` in the corresponding bit of the tutorial 
text itself 
(i.e. 
https://github.com/Gabriel439/Haskell-Pipes-Concurrency-Library/blob/master/src/Pipes/Concurrent/Tutorial.hs#L220
 
) behaves as is advertised in the demo that follows in the text. I will see 
if I can extract the salient difference.



-- 
You received this message because you are subscribed to the Google Groups 
"Haskell Pipes" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].

Reply via email to