summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T2994.stderr
blob: 7f20acf5aa2e1fce4ef5a1547f3b47d800d5f37b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

T2994.hs:11:10: error:
    • Expecting one more argument to ‘MonadReader Int’
      Expected a constraint,
        but ‘MonadReader Int’ has kind ‘* -> Constraint’
    • In the instance declaration for ‘MonadReader Int’

T2994.hs:13:10: error:
    • Expecting one more argument to ‘MonadReader (Reader' r)’
      Expected a constraint,
        but ‘MonadReader (Reader' r)’ has kind ‘* -> Constraint’
    • In the instance declaration for ‘MonadReader (Reader' r)’

T2994.hs:13:23: error:
    • Expecting one more argument to ‘Reader' r’
      Expected a type, but ‘Reader' r’ has kind ‘* -> *’
    • In the first argument of ‘MonadReader’, namely ‘(Reader' r)’
      In the instance declaration for ‘MonadReader (Reader' r)’

T2994.hs:15:10: error:
    • Expected kind ‘(* -> *) -> Constraint’,
        but ‘MonadReader r r’ has kind ‘Constraint’
    • In the instance declaration for ‘MonadReader r r (Reader' r)’