Last active
July 2, 2017 18:20
-
-
Save turion/2203bf029528a07e4b00c8a1d34959a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
record Live a where | |
constructor LiveC | |
state : Type | |
step : state -> (a, state) | |
bind : Live (Live a) -> Live a | |
bind {a} (LiveC state1 step1) = LiveC newstate f where | |
f (sta1 ** st2) = (?aVal, (?st1' ** ?st2')) | |
newstate : Type | |
newstate = (st1 : state1 ** state (fst (step1 st1))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment