Last active
June 14, 2017 08:00
-
-
Save deque-blog/179999f7ae40abe14699e3488a0e1c8d 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
data StringBuilder | |
= Pure String | |
| (>>=) StringBuilder (String -> StringBuilder) | |
eval_string : StringBuilder -> String | |
eval_string (Pure s) = s | |
eval_string (x >>= f) = eval_string (f (eval_string x)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment