summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T21327.stderr
diff options
context:
space:
mode:
authorVladislav Zavialov <vlad.z.4096@gmail.com>2022-11-18 12:53:00 +0300
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-11-25 04:39:04 -0500
commit13d627bbd0bc3dd30d672de341aa7f471be0aa2c (patch)
tree3464a8c6dca4b9bb47db356352d964279eca94fe /testsuite/tests/typecheck/should_fail/T21327.stderr
parent1f1b99b86ab2b005604aea08b0614279a8ad1244 (diff)
downloadhaskell-13d627bbd0bc3dd30d672de341aa7f471be0aa2c.tar.gz
Print unticked promoted data constructors (#20531)
Before this patch, GHC unconditionally printed ticks before promoted data constructors: ghci> type T = True -- unticked (user-written) ghci> :kind! T T :: Bool = 'True -- ticked (compiler output) After this patch, GHC prints ticks only when necessary: ghci> type F = False -- unticked (user-written) ghci> :kind! F F :: Bool = False -- unticked (compiler output) ghci> data False -- introduce ambiguity ghci> :kind! F F :: Bool = 'False -- ticked by necessity (compiler output) The old behavior can be enabled by -fprint-redundant-promotion-ticks. Summary of changes: * Rename PrintUnqualified to NamePprCtx * Add QueryPromotionTick to it * Consult the GlobalRdrEnv to decide whether to print a tick (see mkPromTick) * Introduce -fprint-redundant-promotion-ticks Co-authored-by: Artyom Kuznetsov <hi@wzrd.ht>
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/T21327.stderr')
-rw-r--r--testsuite/tests/typecheck/should_fail/T21327.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/tests/typecheck/should_fail/T21327.stderr b/testsuite/tests/typecheck/should_fail/T21327.stderr
index 98ea237018..1a82cd95f3 100644
--- a/testsuite/tests/typecheck/should_fail/T21327.stderr
+++ b/testsuite/tests/typecheck/should_fail/T21327.stderr
@@ -3,6 +3,6 @@ T21327.hs:7:11: error: [GHC-18872]
• Couldn't match a lifted type with an unlifted type
When matching types
t0 :: *
- Int# :: TYPE 'IntRep
+ Int# :: TYPE IntRep
• In the expression: ?p :: Int#
In an equation for ‘foo’: foo () = (?p :: Int#)