You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pages/tagless-final/codata.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,7 +132,7 @@ To solve the problem above we need `printRed` and `printBold` to accept not a `S
132
132
We don't need to know what these programs do; we just need a way to run them.
133
133
Then the combinators `printRed`, `printBold`, and so on, can also return programs.
134
134
These programs will set the style appropriately before running their program parameter, and reset it after the parameter program has finished running.
135
-
By accepting and returning programs the combinators have the property of closure, meaning that type of the input (a program) is the same as the type of the outpt. Closure in turn makes composition possible.
135
+
By accepting and returning programs the combinators have the property of closure, meaning that type of the input (a program) is the same as the type of the output. Closure in turn makes composition possible.
136
136
137
137
How should we represent a program?
138
138
We will choose codata and in particular functions, the simplest form of codata.
0 commit comments