summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/T11452.stderr
blob: 2bba558421d14df1843160df7e564dde5a558cb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

T11452.hs:6:12: error:
    • Illegal polytype: (forall a. a -> a) -> ()
      The type of a Typed Template Haskell expression must not have any quantification.
    • In the Template Haskell splice $$([|| \ _ -> () ||])
      In the expression: $$([|| \ _ -> () ||])
      In an equation for ‘impred’: impred = $$([|| \ _ -> () ||])

T11452.hs:6:14: error:
    • Couldn't match type ‘p0’ with ‘forall a. a -> a’
      Expected: Language.Haskell.TH.Syntax.Code
                  Language.Haskell.TH.Syntax.Q ((forall a. a -> a) -> ())
        Actual: Language.Haskell.TH.Syntax.Code
                  Language.Haskell.TH.Syntax.Q (p0 -> ())
    • Cannot instantiate unification variable ‘p0’
      with a type involving polytypes: forall a. a -> a
    • In the Template Haskell quotation [|| \ _ -> () ||]
      In the expression: [|| \ _ -> () ||]
      In the Template Haskell splice $$([|| \ _ -> () ||])