summaryrefslogtreecommitdiff
path: root/testsuite/tests/partial-sigs/should_fail/T10999.stderr
blob: aa22ff994482533b71cd6ea8b9ee75808a2be2ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

T10999.hs:5:6: error: [GHC-88464]
    • Found extra-constraints wildcard standing for ‘Ord a’
      Where: ‘a’ is a rigid type variable bound by
               the inferred type of f :: Ord a => () -> Set.Set a
               at T10999.hs:6:1-28
      To use the inferred type, enable PartialTypeSignatures
    • In the type signature: f :: _ => () -> _

T10999.hs:5:17: error: [GHC-88464]
    • Found type wildcard ‘_’ standing for ‘Set.Set a’
      Where: ‘a’ is a rigid type variable bound by
               the inferred type of f :: Ord a => () -> Set.Set a
               at T10999.hs:6:1-28
      To use the inferred type, enable PartialTypeSignatures
    • In the type signature: f :: _ => () -> _

T10999.hs:8:28: error: [GHC-39999]
    • Ambiguous type variable ‘b1’ arising from a use of ‘f’
      prevents the constraint ‘(Ord b1)’ from being solved.
      Relevant bindings include g :: [b1] (bound at T10999.hs:8:1)
      Probable fix: use a type annotation to specify what ‘b1’ should be.
      Potentially matching instances:
        instance Ord a => Ord (Set.Set a) -- Defined in ‘Data.Set.Internal’
        instance Ord Ordering -- Defined in ‘GHC.Classes’
        ...plus 24 others
        ...plus three instances involving out-of-scope types
        (use -fprint-potential-instances to see them all)
    • In the second argument of ‘($)’, namely ‘f ()’
      In the second argument of ‘($)’, namely ‘Set.toList $ f ()’
      In the expression: map fst $ Set.toList $ f ()