summaryrefslogtreecommitdiff
path: root/testsuite/tests/partial-sigs/should_compile/WarningWildcardInstantiations.stderr
diff options
context:
space:
mode:
authorKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2020-02-03 21:17:11 +0100
committerKrzysztof Gogolewski <krzysztof.gogolewski@tweag.io>2020-02-12 23:58:52 +0100
commitdf08468113ab46832b7ac0a7311b608d1b418c4d (patch)
treede3a0ed40b58162976e4831625471b5702b2121f /testsuite/tests/partial-sigs/should_compile/WarningWildcardInstantiations.stderr
parent6c2585e0816cb49487fa6a2be5b8e3f191cf3438 (diff)
downloadhaskell-df08468113ab46832b7ac0a7311b608d1b418c4d.tar.gz
Always display inferred variables using braces
We now always show "forall {a}. T" for inferred variables, previously this was controlled by -fprint-explicit-foralls. This implements part 1 of https://github.com/ghc-proposals/ghc-proposals/pull/179. Part of GHC ticket #16320. Furthermore, when printing a levity restriction error, we now display the HsWrap of the expression. This lets users see the full elaboration with -fprint-typechecker-elaboration (see also #17670)
Diffstat (limited to 'testsuite/tests/partial-sigs/should_compile/WarningWildcardInstantiations.stderr')
-rw-r--r--testsuite/tests/partial-sigs/should_compile/WarningWildcardInstantiations.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/tests/partial-sigs/should_compile/WarningWildcardInstantiations.stderr b/testsuite/tests/partial-sigs/should_compile/WarningWildcardInstantiations.stderr
index 4dbb77b300..8cfb1f2fe0 100644
--- a/testsuite/tests/partial-sigs/should_compile/WarningWildcardInstantiations.stderr
+++ b/testsuite/tests/partial-sigs/should_compile/WarningWildcardInstantiations.stderr
@@ -1,6 +1,6 @@
TYPE SIGNATURES
- bar :: forall t _. t -> (t -> _) -> _
- foo :: forall a. (Show a, Enum a) => a -> String
+ bar :: forall {t} {_}. t -> (t -> _) -> _
+ foo :: forall {a}. (Show a, Enum a) => a -> String
Dependent modules: []
Dependent packages: [base-4.13.0.0, ghc-prim-0.6.1,
integer-gmp-1.0.2.0]