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

#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

#11178: Documentation bug in Data.List.NonEmpty
-------------------------------------+-------------------------------------
Reporter: audunska | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: libraries/base | Version: 7.10.2
Resolution: | 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: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#11178: Documentation bug in Data.List.NonEmpty -------------------------------------+------------------------------------- Reporter: audunska | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: libraries/base | Version: 7.10.2 Resolution: fixed | 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: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11178#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11178: Documentation bug in Data.List.NonEmpty -------------------------------------+------------------------------------- Reporter: audunska | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.1 Component: libraries/base | Version: 7.10.2 Resolution: fixed | 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: | -------------------------------------+------------------------------------- Changes (by bgamari): * milestone: => 8.0.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11178#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC