summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_fail/T3330c.stderr
blob: 943dbb148b644fe52d02f633f7e6909cd819a497 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

T3330c.hs:25:43: error:
    • Couldn't match kind ‘*’ with ‘* -> *’
      When matching types
        f1 :: * -> *
        f1 x :: *
      Expected type: Der ((->) x) (f1 x)
        Actual type: R f1
    • In the first argument of ‘plug’, namely ‘rf’
      In the first argument of ‘Inl’, namely ‘(plug rf df x)’
      In the expression: Inl (plug rf df x)
    • Relevant bindings include
        x :: x (bound at T3330c.hs:25:29)
        df :: f1 x (bound at T3330c.hs:25:25)
        rf :: R f1 (bound at T3330c.hs:25:13)
        plug' :: R f -> Der f x -> x -> f x (bound at T3330c.hs:25:1)