Extend `Foldable` class with `length` and `null` methods
This completes the `Foldable` class by two important operations which this way can be optimised for the underlying structure more easily. A minor fix for the `containers` submodule was needed to due name clash Addresses #9621 Reviewed By: ekmett, dfeuer, austin Differential Revision: https://phabricator.haskell.org/D250
Showing
- compiler/ghci/Debugger.hs 1 addition, 1 deletioncompiler/ghci/Debugger.hs
- libraries/base/Data/Foldable.hs 10 additions, 0 deletionslibraries/base/Data/Foldable.hs
- libraries/base/Data/List.hs 1 addition, 1 deletionlibraries/base/Data/List.hs
- libraries/containers 1 addition, 1 deletionlibraries/containers
- testsuite/tests/ghci/scripts/ghci025.stdout 3 additions, 1 deletiontestsuite/tests/ghci/scripts/ghci025.stdout
- testsuite/tests/module/mod106.hs 1 addition, 1 deletiontestsuite/tests/module/mod106.hs
- testsuite/tests/parser/should_fail/readFail003.hs 1 addition, 1 deletiontestsuite/tests/parser/should_fail/readFail003.hs
- testsuite/tests/simplCore/should_compile/T7360.hs 4 additions, 2 deletionstestsuite/tests/simplCore/should_compile/T7360.hs
- testsuite/tests/typecheck/should_compile/faxen.hs 4 additions, 1 deletiontestsuite/tests/typecheck/should_compile/faxen.hs
- testsuite/tests/typecheck/should_fail/mc21.hs 2 additions, 2 deletionstestsuite/tests/typecheck/should_fail/mc21.hs
- testsuite/tests/typecheck/should_fail/mc24.hs 2 additions, 2 deletionstestsuite/tests/typecheck/should_fail/mc24.hs
Loading
Please register or sign in to comment