projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6219c25
)
Fix "init" docs: the input list need not be finite. Fixes trac #3465
author
Ian Lynagh
<igloo@earth.li>
Fri, 11 Sep 2009 21:04:37 +0000
(21:04 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Fri, 11 Sep 2009 21:04:37 +0000
(21:04 +0000)
GHC/List.lhs
patch
|
blob
|
history
diff --git
a/GHC/List.lhs
b/GHC/List.lhs
index
b2ec4f8
..
5dcf7e0
100644
(file)
--- a/
GHC/List.lhs
+++ b/
GHC/List.lhs
@@
-89,7
+89,7
@@
last (x:xs) = last' x xs
#endif
-- | 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]
#ifdef USE_REPORT_PRELUDE
init [x] = []