Documentation bug in Data.List.NonEmpty
(also filed against the semigroups package)
The documentation for cycle says that
cycle [1,2,3] = 1 :| [2,3,1,2,3,...]
But the argument should be NonEmpty, so it should read
cycle (1 :| [2,3]) = 1 :| [2,3,1,2,3,...]
Trac metadata
Trac field | Value |
---|---|
Version | 7.10.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | libraries/base |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |