summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_fail/T4272.stderr
blob: 7c98377ed737884d459c45f898297025aad268c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

T4272.hs:15:26:
    Could not deduce (a ~ TermFamily a a)
    from the context (TermLike a)
      bound by the type signature for
                 laws :: TermLike a => TermFamily a a -> b
      at T4272.hs:14:9-53
      ‘a’ is a rigid type variable bound by
          the type signature for laws :: TermLike a => TermFamily a a -> b
          at T4272.hs:14:16
    Expected type: TermFamily a (TermFamily a a)
      Actual type: TermFamily a a
    Relevant bindings include
      t :: TermFamily a a (bound at T4272.hs:15:6)
      laws :: TermFamily a a -> b (bound at T4272.hs:15:1)
    In the first argument of ‘terms’, namely
      ‘(undefined :: TermFamily a a)’
    In the second argument of ‘prune’, namely
      ‘(terms (undefined :: TermFamily a a))’
    In the expression: prune t (terms (undefined :: TermFamily a a))