summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_fail/T4846.stderr
blob: 428f1a538bc9eba95fe3915427732b5515a7b7c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

T4846.hs:29:1: error:
    • Couldn't match type ‘Bool’ with ‘BOOL’
        arising from a use of ‘GHC.Prim.coerce’
    • In the expression:
          GHC.Prim.coerce @(Expr Bool) @(Expr BOOL) mkExpr :: Expr BOOL
      In an equation for ‘mkExpr’:
          mkExpr
            = GHC.Prim.coerce @(Expr Bool) @(Expr BOOL) mkExpr :: Expr BOOL
      When typechecking the code for ‘mkExpr’
        in a derived instance for ‘B BOOL’:
        To see the code I am typechecking, use -ddump-deriv
      In the instance declaration for ‘B BOOL’