Commit 46d46ede authored by Steve Hart's avatar Steve Hart Committed by Ben Gamari

Improve clarity of documentation for maybeToList

parent fe1f97cc
......@@ -175,7 +175,7 @@ fromMaybe :: a -> Maybe a -> a
fromMaybe d x = case x of {Nothing -> d;Just v -> v}
-- | The 'maybeToList' function returns an empty list when given
-- 'Nothing' or a singleton list when not given 'Nothing'.
-- 'Nothing' or a singleton list when given 'Just'.
-- ==== __Examples__
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment