summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/T16030.stdout
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-04 00:16:40 +0100
commit77cca55cb7f9ffc9ce7f165aeddb93e81a833a41 (patch)
tree12f3c808371d9060c8256793d64c6a9f668b62ee /testsuite/tests/ghci/scripts/T16030.stdout
parent58ed6c4a0999c0025b1b024bc26171fa6d6773b3 (diff)
downloadhaskell-77cca55cb7f9ffc9ce7f165aeddb93e81a833a41.tar.gz
Always display inferred variables using braceswip/display-inferred
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/ghci/scripts/T16030.stdout')
-rw-r--r--testsuite/tests/ghci/scripts/T16030.stdout16
1 files changed, 8 insertions, 8 deletions
diff --git a/testsuite/tests/ghci/scripts/T16030.stdout b/testsuite/tests/ghci/scripts/T16030.stdout
index 4efa27ce70..987453b9ea 100644
--- a/testsuite/tests/ghci/scripts/T16030.stdout
+++ b/testsuite/tests/ghci/scripts/T16030.stdout
@@ -1,28 +1,28 @@
type role Foo1 phantom
type Foo1 :: forall k. k -> *
data Foo1 a where
- MkFoo1a :: forall k (a :: k). Proxy a -> Int -> Foo1 a
- MkFoo1b :: forall k (a :: k). {a :: Proxy a, b :: Int} -> Foo1 a
+ MkFoo1a :: forall {k} (a :: k). Proxy a -> Int -> Foo1 a
+ MkFoo1b :: forall {k} (a :: k). {a :: Proxy a, b :: Int} -> Foo1 a
-- Defined at T16030.hs:8:1
type Foo2 :: forall k. k -> *
data family Foo2 a
-- Defined at T16030.hs:12:1
data instance forall k (a :: k). Foo2 a where
- MkFoo2a :: forall k (a :: k). Proxy a -> Int -> Foo2 a
- MkFoo2b :: forall k (a :: k). {c :: Proxy a, d :: Int} -> Foo2 a
+ MkFoo2a :: forall {k} (a :: k). Proxy a -> Int -> Foo2 a
+ MkFoo2b :: forall {k} (a :: k). {c :: Proxy a, d :: Int} -> Foo2 a
-- Defined at T16030.hs:13:15
type role Foo1 nominal phantom
type Foo1 :: forall k. k -> *
data Foo1 @k a where
- MkFoo1a :: forall k (a :: k). Proxy @{k} a -> Int -> Foo1 @k a
- MkFoo1b :: forall k (a :: k).
+ MkFoo1a :: forall {k} (a :: k). Proxy @{k} a -> Int -> Foo1 @k a
+ MkFoo1b :: forall {k} (a :: k).
{a :: Proxy @{k} a, b :: Int} -> Foo1 @k a
-- Defined at T16030.hs:8:1
type Foo2 :: forall k. k -> *
data family Foo2 @k a
-- Defined at T16030.hs:12:1
data instance forall k (a :: k). Foo2 @k a where
- MkFoo2a :: forall k (a :: k). Proxy @{k} a -> Int -> Foo2 @k a
- MkFoo2b :: forall k (a :: k).
+ MkFoo2a :: forall {k} (a :: k). Proxy @{k} a -> Int -> Foo2 @k a
+ MkFoo2b :: forall {k} (a :: k).
{c :: Proxy @{k} a, d :: Int} -> Foo2 @k a
-- Defined at T16030.hs:13:15