summaryrefslogtreecommitdiff
path: root/ws2015
diff options
context:
space:
mode:
Diffstat (limited to 'ws2015')
-rw-r--r--ws2015/FFP/blaetter/03/FFP_U03_Funktoren.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/ws2015/FFP/blaetter/03/FFP_U03_Funktoren.hs b/ws2015/FFP/blaetter/03/FFP_U03_Funktoren.hs
index 51ab9e5..935f9eb 100644
--- a/ws2015/FFP/blaetter/03/FFP_U03_Funktoren.hs
+++ b/ws2015/FFP/blaetter/03/FFP_U03_Funktoren.hs
@@ -184,3 +184,10 @@ instance Eq a => Eq (Options a) where
184 184
185instance Ord a => Ord (Tree a) where 185instance Ord a => Ord (Tree a) where
186 compare (Node x xs) (Node x' xs') = compare x x' `mappend` compare xs xs' 186 compare (Node x xs) (Node x' xs') = compare x x' `mappend` compare xs xs'
187 where
188 -- Siehe Data.Monoid
189 mappend LT _ = LT
190 mappend EQ EQ = EQ
191 mappend EQ LT = LT
192 mappend EQ GT = GT
193 mappend GT _ = GT