Commit bf7ad38e authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Fix "init" docs: the input list need not be finite. Fixes trac #3465

parent 92c79859
...@@ -89,7 +89,7 @@ last (x:xs) = last' x xs ...@@ -89,7 +89,7 @@ last (x:xs) = last' x xs
#endif #endif
-- | Return all the elements of a list except the last one. -- | Return all the elements of a list except the last one.
-- The list must be finite and non-empty. -- The list must be non-empty.
init :: [a] -> [a] init :: [a] -> [a]
#ifdef USE_REPORT_PRELUDE #ifdef USE_REPORT_PRELUDE
init [x] = [] init [x] = []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment