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

tcfail201.hs:18:28:
    Couldn't match expected type ‘a’ with actual type ‘HsDoc id1’
      ‘a’ is a rigid type variable bound by
          the type signature for
            gfoldl' :: (forall a1 b. c (a1 -> b) -> a1 -> c b)
                       -> (forall g. g -> c g) -> a -> c a
          at tcfail201.hs:15:12
    Relevant bindings include
      hsDoc :: a (bound at tcfail201.hs:16:13)
      gfoldl' :: (forall a1 b. c (a1 -> b) -> a1 -> c b)
                 -> (forall g. g -> c g) -> a -> c a
        (bound at tcfail201.hs:16:1)
    In the pattern: DocParagraph hsDoc
    In a case alternative:
        (DocParagraph hsDoc) -> z DocParagraph `k` hsDoc
    In the expression:
      case hsDoc of {
        DocEmpty -> z DocEmpty
        (DocParagraph hsDoc) -> z DocParagraph `k` hsDoc }