summaryrefslogtreecommitdiff
path: root/assignment-5/skeleton5.icl
diff options
context:
space:
mode:
Diffstat (limited to 'assignment-5/skeleton5.icl')
-rw-r--r--assignment-5/skeleton5.icl4
1 files changed, 2 insertions, 2 deletions
diff --git a/assignment-5/skeleton5.icl b/assignment-5/skeleton5.icl
index 3f3ba2f..1a01909 100644
--- a/assignment-5/skeleton5.icl
+++ b/assignment-5/skeleton5.icl
@@ -65,9 +65,9 @@ where show s = s.Student.name + " (" + gToString{|*|} s.bama + ")"
// But then how to select the fields for which the View mode applies?
task8 :: Student -> Task Student
task8 s = updateInformation
- (Title ("Update the student: " + gToString{|*|} s))
+ (Title "Update the student")
[UpdateAs (\s -> s.Student.name) (\s n -> {Student | s & name=n})]
- s
+ s -|| viewInformation (Title "Current value") [] s
students :: [Student]
students =