[GHC] #13573: Add Foldable1 to base
GHC
ghc-devs at haskell.org
Mon Mar 5 00:59:31 UTC 2018
#13573: Add Foldable1 to base
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: #10365 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by andrewthad):
The name of the typeclass is a little unfortunate since the similarly
named `Eq1`, `Show1`, etc. use the same suffix but with a very different
meaning. Also, it's a little unfortunate that `Foldable1` doesn't have
`foldl1`, `foldr1`, etc. Although there are already functions of the same
name in `Foldable`, and there's no burning need to remove them any time
soon, it would be nice to have a long-term plan to deprecate and remove
them since they are a wart in the typeclass design.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13573#comment:13>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list