| | |
Summary: RHEINISCH-
WESTF¨ALISCHE
TECHNISCHE
HOCHSCHULE
AACHEN
LEHR- UND FORSCHUNGSGEBIET
INFORMATIK 2
RWTH Aachen · D-52056 Aachen · GERMANY
http://www-i2.informatik.rwth-aachen.de/lufgi2
LuFG
Informatik II
Prof. Dr. J¨urgen Giesl
Peter Schneider-Kamp
Stephan Swiderski
Exercises Functional Programming Sheet 5
Solutions will be collected until Wednesday, May 16, 2007 in the exercise course.
Exercises can be solved both in English and in German.
Exercise 1 (4 + 4 + 4 points)
We define a monad Count as follows:
data Count a = Counter Int a
|