Skip to content

Commit f3e1315

Browse files
Zelenyamilesfrain
authored andcommitted
[Chapter 5] Add an exercise hint
1 parent 217faf8 commit f3e1315

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text/chapter5.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,8 @@ The accumulating function `combine` is defined in a `where` block. `combine` tak
523523

524524
## Exercises
525525

526-
1. (Medium) Extend the vector graphics library with a new operation `area` which computes the area of a `Shape`. For the purpose of this exercise, the area of a line or a piece of text is assumed to be zero.
527-
1. (Difficult) Extend the `Shape` type with a new data constructor `Clipped`, which clips another `Picture` to a rectangle. Extend the `shapeBounds` function to compute the bounds of a clipped picture. Note that this makes `Shape` into a recursive data type.
526+
1. (Medium) Extend the vector graphics library with a new operation `area` that computes the area of a `Shape`. For the purpose of this exercise, the area of a line or a piece of text is assumed to be zero.
527+
1. (Difficult) Extend the `Shape` type with a new data constructor `Clipped`, which clips another `Picture` to a rectangle. Extend the `shapeBounds` function to compute the bounds of a clipped picture. Note that this makes `Shape` into a recursive data type. _Hint_: The compiler will walk you through extending other functions as required.
528528

529529
## Conclusion
530530

0 commit comments

Comments
 (0)