[GHC] #10222: Data.Foldable should have genericLength
GHC
ghc-devs at haskell.org
Tue Mar 31 02:53:39 UTC 2015
#10222: Data.Foldable should have genericLength
-------------------------------------+-------------------------------------
Reporter: uznx | Owner:
Type: feature | Status: new
request | Milestone:
Priority: normal | Version: 7.10.1
Component: | Operating System: Unknown/Multiple
libraries/base | Type of failure: None/Unknown
Keywords: | Blocked By:
Architecture: | Related Tickets:
Unknown/Multiple |
Test Case: |
Blocking: |
Differential Revisions: |
-------------------------------------+-------------------------------------
The "length" function in Data.Foldable has its return type hardcoded to
"Int". There should also be a genericLength function which can return any
Num type, similar to Data.List.genericLength.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10222>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list