summaryrefslogtreecommitdiff
path: root/testsuite/tests/monadfail/MonadFailErrors.stderr
blob: 17807a4be01d4531419b888075c9bf01470363b1 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86

MonadFailErrors.hs:16:5: error:
    Could not deduce (MonadFail m)
      arising from a do statement
                   with the failable pattern ‘Just x’
    from the context: Monad m
      bound by the type signature for:
                 general :: Monad m => m a
      at MonadFailErrors.hs:14:12-25
    Possible fix:
      add (MonadFail m) to the context of
        the type signature for:
          general :: Monad m => m a
    In a stmt of a 'do' block: Just x <- undefined
    In the expression:
      do { Just x <- undefined;
           undefined }
    In an equation for ‘general’:
        general
          = do { Just x <- undefined;
                 undefined }

MonadFailErrors.hs:30:5: error:
    No instance for (MonadFail Identity)
      arising from a do statement
                   with the failable pattern ‘Just x’
    In a stmt of a 'do' block: Just x <- undefined
    In the expression:
      do { Just x <- undefined;
           undefined }
    In an equation for ‘identity’:
        identity
          = do { Just x <- undefined;
                 undefined }

MonadFailErrors.hs:44:5: error:
    No instance for (MonadFail (ST s))
      arising from a do statement
                   with the failable pattern ‘Just x’
    In a stmt of a 'do' block: Just x <- undefined
    In the expression:
      do { Just x <- undefined;
           undefined }
    In an equation for ‘st’:
        st
          = do { Just x <- undefined;
                 undefined }

MonadFailErrors.hs:51:5: error:
    No instance for (MonadFail ((->) r))
      arising from a do statement
                   with the failable pattern ‘Just x’
    In a stmt of a 'do' block: Just x <- undefined
    In the expression:
      do { Just x <- undefined;
           undefined }
    In an equation for ‘reader’:
        reader
          = do { Just x <- undefined;
                 undefined }

MonadFailErrors.hs:59:5: error:
    No instance for (MonadFail Identity)
      arising from a do statement
                   with the failable pattern ‘Newtype x’
    In a stmt of a 'do' block: Newtype x <- undefined
    In the expression:
      do { Newtype x <- undefined;
           undefined }
    In an equation for ‘newtypeMatch’:
        newtypeMatch
          = do { Newtype x <- undefined;
                 undefined }

MonadFailErrors.hs:67:5: error:
    No instance for (MonadFail Identity)
      arising from a do statement
                   with the failable pattern ‘Data x’
    In a stmt of a 'do' block: Data x <- undefined
    In the expression:
      do { Data x <- undefined;
           undefined }
    In an equation for ‘singleConMatch’:
        singleConMatch
          = do { Data x <- undefined;
                 undefined }