Skip to content

Commit

Permalink
Fix sawtooth example
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Bärenz authored and turion committed Oct 24, 2024
1 parent 92a8299 commit 88bf91a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rhine-examples/src/Sawtooth.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ module Main where
import FRP.Rhine

sawtooth :: (Monad m) => Behaviour m UTCTime Double
sawtooth = safely $ do
try $
sinceStart >>> proc time -> do
throwOn () -< time > 1
returnA -< time
safe sawtooth
sawtooth =
forever $
try $
sinceStart >>> proc time -> do
throwOn () -< time > 1
returnA -< time

main :: IO ()
main = flow $ sawtooth >-> arrMCl print @@ (waitClock :: Millisecond 200)

0 comments on commit 88bf91a

Please sign in to comment.