[GHC] #11178: Documentation bug in Data.List.NonEmpty

GHC ghc-devs at haskell.org
Tue Dec 8 12:54:28 UTC 2015


#11178: Documentation bug in Data.List.NonEmpty
-------------------------------------+-------------------------------------
           Reporter:  audunska       |             Owner:
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:                 |           Version:  7.10.2
  libraries/base                     |
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  Documentation
  Unknown/Multiple                   |  bug
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 (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,...]

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11178>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list