Skip to content
Snippets Groups Projects
Commit 2eb74913 authored by Jens Nolte's avatar Jens Nolte
Browse files

Reduce simple do block with sequential composition

parent c54ebe44
No related branches found
No related tags found
No related merge requests found
......@@ -133,10 +133,7 @@ instance IsStream BlockStream where
prefixedName = prefix <> blockName'
updateBarP :: Bar -> Pipe a a IO ()
updateBarP bar = forever $ do
v <- await
yield v
liftIO $ updateBarDefault' bar
updateBarP bar = forever $ await >>= yield >> liftIO (updateBarDefault' bar)
data Request = Command Command | StartStream StreamType
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment