diff options
Diffstat (limited to 'testsuite/tests/indexed-types/should_compile/Col2.hs')
-rw-r--r-- | testsuite/tests/indexed-types/should_compile/Col2.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/tests/indexed-types/should_compile/Col2.hs b/testsuite/tests/indexed-types/should_compile/Col2.hs index 97a10aef84..c763c5984a 100644 --- a/testsuite/tests/indexed-types/should_compile/Col2.hs +++ b/testsuite/tests/indexed-types/should_compile/Col2.hs @@ -1,7 +1,7 @@ {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE FlexibleContexts #-} -module Col where +module Col where type family Elem c @@ -11,4 +11,4 @@ class (Eq (Elem c)) => Col c where count :: Elem c -> c -> Int instance Eq e => Col [e] where - count x = length . filter (==x) + count x = length . filter (==x) |