@@ -1,7 +1,7 @@
11
22module Maybe where
33
4−import List (foldr)
4+import List as List
55
66-- The Maybe datatype. Useful when a computation may or may not
77-- result in a value (e.g. logarithm is defined only for positive numbers).
@@ -30,4 +30,4 @@ cons mx xs = maybe xs (\x -> x :: xs) mx
3030
3131-- Filters out Nothings and extracts the remaining values.
3232justs : [Maybe a] -> [a]
33−justs = foldr cons []
33+justs = List.foldr cons []