[GHC] #13000: minor doc bug about list fusion in GHC user's guide

#13000: minor doc bug about list fusion in GHC user's guide -------------------------------------+------------------------------------- Reporter: George | Owner: Type: bug | Status: new Priority: low | Milestone: Component: Documentation | Version: 8.0.1 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: -------------------------------------+------------------------------------- First, the Users Guide (8.0.1.20161117) in section 10.32.6,List fusion, should mention length as a good consumer. Secondly, it says: "If you want to write your own good consumers or producers, look at the Prelude definitions of the above functions to see how to do so." However if you go to https://hackage.haskell.org/package/base-4.9.0.0/docs/Prelude.html and look at the source code for length you end up at https://hackage.haskell.org/package/base-4.9.0.0/docs/src/Data.Foldable.html... which is not a good consumer. I think the User's Guide should be changed to replace "Prelude" with "https://hackage.haskell.org/package/base-4.9.0.0/docs/src/GHC.List.html". -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13000 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13000: minor doc bug about list fusion in GHC user's guide -------------------------------------+------------------------------------- Reporter: George | Owner: (none) Type: bug | Status: new Priority: low | Milestone: Component: Documentation | Version: 8.0.1 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: | -------------------------------------+------------------------------------- Changes (by George): * cc: nomeata (added) Comment: I believe as a result of the work of Joachim Breitner there are other functions that are good consumers. e.g. sum, product, foldl and foldl'. We should get Joachim to confirm those and possibly others -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13000#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13000: minor doc bug about list fusion in GHC user's guide -------------------------------------+------------------------------------- Reporter: George | Owner: (none) Type: bug | Status: new Priority: low | Milestone: Component: Documentation | Version: 8.0.1 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 nomeata): Grepping through the git log (`-G RULES -p libraries/base` etc.) it seems that these functions recently became fusable, mostly due to work by David Feuer: `words`, `unwords`, `takeWhile`, `scanl`, `mapAccumL`, `scanr`, `mapMaybe`, `findIndices`, `unfoldr`, `filterM`, `foldl` -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13000#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC