purescript-behaviors. Switcher semantics.

45 views
Skip to first unread message

Andrew Voron

unread,
Feb 12, 2018, 6:26:19 AM2/12/18
to purescript
Hi. I need some clarification with purescript-behaviors.
Look, if we have such a stream:

testStream Event Int
testStream
= sample_ aaa' (interval 500)


we expect it would tick every half-second, independently on how aaa' behavior had been obtained, right?
But if I get aaa' in this way:

aaa Event (Behavior Int)
aaa
= (\key pure key) <$> down


aaa
' ∷ Behavior Int
aaa'
= switcher (pure (-1)) aaa


it breakes our expectation, and fires after halfsecond after last switch happened.
I don't believe this is correct, what you mind?

Phil Freeman

unread,
Feb 16, 2018, 8:44:55 PM2/16/18
to purescript
This might be a bug. Could you please file an issue on the issue tracker?

Andrew Voron

unread,
Feb 20, 2018, 9:17:32 AM2/20/18
to purescript
Reply all
Reply to author
Forward
0 new messages