summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/T10945.stderr
blob: fe71a2f50c56ce6892ea655c8927802b559c2e2d (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: error:
    • Couldn't match type: [Dec]
                     with: Q [Dec]
      Expected: DecsQ
        Actual: [Dec]
    • In the first argument of ‘return’, namely
        ‘[SigD
            (mkName "m")
            (ForallT
               [PlainTV (mkName "a") SpecifiedSpec] []
               (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") SpecifiedSpec] []
                (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") SpecifiedSpec] []
                   (AppT (AppT ArrowT (VarT (mkName "a"))) (VarT (mkName "a")))),
              FunD (mkName "m") [Clause [...] (NormalB (VarE (mkName "x"))) []]])