Last active
July 15, 2017 18:55
-
-
Save deque-blog/3e9ae13cefec8fc1123b0319e0e063d1 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 Reducer st acc elem where -- Defines a reducer in terms of | |
constructor MkReducer | |
state : st -- * A piece of state | |
runStep : Step st acc elem -- * A (stateful) step function | |
complete : st -> acc -> acc -- * A completion function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment