on master help sign in
Style tweak.
9c22031evancz
libraries/Maybe.elm+2−2
@@ -1,7 +1,7 @@
1
1
2module Maybe where
2module Maybe where
3
3
4−import List (foldr)
4+import List as List
5
5
6-- The Maybe datatype. Useful when a computation may or may not
6-- The Maybe datatype. Useful when a computation may or may not
7-- result in a value (e.g. logarithm is defined only for positive numbers).
7-- 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
30
30
31-- Filters out Nothings and extracts the remaining values.
31-- Filters out Nothings and extracts the remaining values.
32justs : [Maybe a] -> [a]
32justs : [Maybe a] -> [a]
33−justs = foldr cons []
33+justs = List.foldr cons []