diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2014-09-28 13:02:53 +0200 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2014-09-28 15:06:39 +0200 |
commit | e5cca4ab246ca2d1ecdd7c39eefd3157547cb6aa (patch) | |
tree | 5fe848bcd68c5a94b3af11b2282df23d759ca823 /testsuite/tests/typecheck/should_fail/mc24.hs | |
parent | bf3329104c971c84ab178f3ded88254b9594f9cc (diff) | |
download | haskell-e5cca4ab246ca2d1ecdd7c39eefd3157547cb6aa.tar.gz |
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
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/mc24.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/mc24.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/tests/typecheck/should_fail/mc24.hs b/testsuite/tests/typecheck/should_fail/mc24.hs index 9186721229..281f4ad99a 100644 --- a/testsuite/tests/typecheck/should_fail/mc24.hs +++ b/testsuite/tests/typecheck/should_fail/mc24.hs @@ -2,10 +2,10 @@ -- the group when a by clause is present {-# OPTIONS_GHC -XMonadComprehensions -XTransformListComp #-} - module ShouldFail where +import Data.OldList -foo = [ length x +foo = [ Data.OldList.length x | x <- [1..10] , then group by x using take 2 ] |