summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/T10945.stderr
blob: 0c1d949053236fbbc09297f4fda9e8154049ee2c (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

T10945.hs:7:11:
    Couldn't match expected type ‘TExp DecsQ’ with actual type ‘[Dec]’
    In the first argument of ‘return’, namely
      ‘[SigD
          (mkName "m")
          (ForallT
             [PlainTV (mkName "a")]
             []
             (AppT (AppT ArrowT (VarT (mkName "a"))) (VarT (mkName "a")))),
        FunD (mkName "m") [Clause [...] (NormalB (VarE (mkName "x"))) []]]’
    In the expression:
      return
        [SigD
           (mkName "m")
           (ForallT
              [PlainTV (mkName "a")]
              []
              (AppT (AppT ArrowT (VarT (mkName "a"))) (VarT (mkName "a")))),
         FunD (mkName "m") [Clause [...] (NormalB (VarE (mkName "x"))) []]]
    In the Template Haskell splice
      $$(return
           [SigD
              (mkName "m")
              (ForallT
                 [PlainTV (mkName "a")]
                 []
                 (AppT (AppT ArrowT (VarT (mkName "a"))) (VarT (mkName "a")))),
            FunD (mkName "m") [Clause [...] (NormalB (VarE (mkName "x"))) []]])