diff options
author | John Leo <leo@halfaya.org> | 2016-12-13 14:57:15 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-12-13 15:38:33 -0500 |
commit | 7031704332db55de1fc3c46a8f450bad933997e0 (patch) | |
tree | da3d099939e1951c5286a7804dc42a8685b28d19 /testsuite | |
parent | aa123f445338c2980fcee87a09c01d14a83bf409 (diff) | |
download | haskell-7031704332db55de1fc3c46a8f450bad933997e0.tar.gz |
print * in unicode correctly (fixes #12550)
Test Plan: validate
Reviewers: simonpj, austin, bgamari, goldfire
Reviewed By: bgamari, goldfire
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D2829
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/tests/generics/T10604/T10604_deriving.stderr | 38 | ||||
-rw-r--r-- | testsuite/tests/ghci/scripts/T12550.script | 38 | ||||
-rw-r--r-- | testsuite/tests/ghci/scripts/T12550.stdout | 14 | ||||
-rwxr-xr-x | testsuite/tests/ghci/scripts/all.T | 2 |
4 files changed, 70 insertions, 22 deletions
diff --git a/testsuite/tests/generics/T10604/T10604_deriving.stderr b/testsuite/tests/generics/T10604/T10604_deriving.stderr index d90c2733b1..6898af06a8 100644 --- a/testsuite/tests/generics/T10604/T10604_deriving.stderr +++ b/testsuite/tests/generics/T10604/T10604_deriving.stderr @@ -56,7 +56,7 @@ Derived class instances: -> T10604_deriving.Wrap g1 } instance GHC.Generics.Generic1 - (GHC.Types.* -> GHC.Types.*) T10604_deriving.Wrap where + (* -> *) T10604_deriving.Wrap where GHC.Generics.from1 x = GHC.Generics.M1 (case x of { @@ -67,7 +67,7 @@ Derived class instances: (GHC.Generics.M1 (GHC.Generics.M1 g1)) -> T10604_deriving.Wrap (GHC.Generics.unRec1 g1) } - instance forall k (a :: k -> GHC.Types.*). + instance forall k (a :: k -> *). GHC.Generics.Generic (T10604_deriving.Wrap2 k a) where GHC.Generics.from x = GHC.Generics.M1 @@ -80,7 +80,7 @@ Derived class instances: -> T10604_deriving.Wrap2 g1 } instance GHC.Generics.Generic1 - (k -> GHC.Types.*) (T10604_deriving.Wrap2 k) where + (k -> *) (T10604_deriving.Wrap2 k) where GHC.Generics.from1 x = GHC.Generics.M1 (case x of { @@ -250,23 +250,23 @@ Derived type family instances: (GHC.Generics.Rec0 * (T10604_deriving.Proxy - (GHC.Types.* -> GHC.Types.*) a)))) + (* -> *) a)))) type GHC.Generics.Rep1 - (GHC.Types.* -> GHC.Types.*) T10604_deriving.Wrap = GHC.Generics.D1 - (GHC.Types.* -> GHC.Types.*) + (* -> *) T10604_deriving.Wrap = GHC.Generics.D1 + (* -> *) ('GHC.Generics.MetaData "Wrap" "T10604_deriving" "main" 'GHC.Types.False) (GHC.Generics.C1 - (GHC.Types.* -> GHC.Types.*) + (* -> *) ('GHC.Generics.MetaCons "Wrap" 'GHC.Generics.PrefixI 'GHC.Types.False) (GHC.Generics.S1 - (GHC.Types.* -> GHC.Types.*) + (* -> *) ('GHC.Generics.MetaSel ('GHC.Base.Nothing GHC.Types.Symbol) @@ -274,10 +274,10 @@ Derived type family instances: 'GHC.Generics.NoSourceStrictness 'GHC.Generics.DecidedLazy) (GHC.Generics.Rec1 - (GHC.Types.* -> GHC.Types.*) + (* -> *) (T10604_deriving.Proxy - (GHC.Types.* - -> GHC.Types.*))))) + (* + -> *))))) type GHC.Generics.Rep (T10604_deriving.Wrap2 k a) = GHC.Generics.D1 * ('GHC.Generics.MetaData @@ -304,23 +304,23 @@ Derived type family instances: (T10604_deriving.Proxy * (T10604_deriving.Proxy - (k -> GHC.Types.*) a))))) + (k -> *) a))))) type GHC.Generics.Rep1 - (k -> GHC.Types.*) (T10604_deriving.Wrap2 k) = GHC.Generics.D1 - (k -> GHC.Types.*) + (k -> *) (T10604_deriving.Wrap2 k) = GHC.Generics.D1 + (k -> *) ('GHC.Generics.MetaData "Wrap2" "T10604_deriving" "main" 'GHC.Types.False) (GHC.Generics.C1 - (k -> GHC.Types.*) + (k -> *) ('GHC.Generics.MetaCons "Wrap2" 'GHC.Generics.PrefixI 'GHC.Types.False) (GHC.Generics.S1 - (k -> GHC.Types.*) + (k -> *) ('GHC.Generics.MetaSel ('GHC.Base.Nothing GHC.Types.Symbol) @@ -329,12 +329,12 @@ Derived type family instances: 'GHC.Generics.DecidedLazy) ((GHC.Generics.:.:) * - (k -> GHC.Types.*) + (k -> *) (T10604_deriving.Proxy *) (GHC.Generics.Rec1 - (k -> GHC.Types.*) + (k -> *) (T10604_deriving.Proxy - (k -> GHC.Types.*)))))) + (k -> *)))))) type GHC.Generics.Rep (T10604_deriving.SumOfProducts k a) = GHC.Generics.D1 * diff --git a/testsuite/tests/ghci/scripts/T12550.script b/testsuite/tests/ghci/scripts/T12550.script index 3964035e8b..dad2a47e65 100644 --- a/testsuite/tests/ghci/scripts/T12550.script +++ b/testsuite/tests/ghci/scripts/T12550.script @@ -1,10 +1,44 @@ -:set -fprint-unicode-syntax -fprint-explicit-foralls +:set -fprint-explicit-foralls -XKindSignatures -XExplicitNamespaces +import Data.Kind (type Type) + + +class C a where f :: a b +:t f +class C (a :: * -> * ) where f :: a b +:t f +class C (a :: ★ -> * ) where f :: a b +:t f +class C (a :: * -> ★ ) where f :: a b +:t f +class C (a :: ★ -> ★ ) where f :: a b +:t f +class C (a :: Type -> Type ) where f :: a b +:t f + +:set -fprint-unicode-syntax + +class C a where f :: a b +:t f +class C (a :: * -> * ) where f :: a b +:t f +class C (a :: ★ -> * ) where f :: a b +:t f +class C (a :: * -> ★ ) where f :: a b +:t f +class C (a :: ★ -> ★ ) where f :: a b +:t f +class C (a :: Type -> Type ) where f :: a b +:t f :t fmap :i fmap :k Functor -:m + GHC.Generics + +import GHC.Generics :i Functor :t datatypeName :i datatypeName :t (:*:) +:k Rep +:k M1 + diff --git a/testsuite/tests/ghci/scripts/T12550.stdout b/testsuite/tests/ghci/scripts/T12550.stdout index 442bc05c71..de3f8d15d6 100644 --- a/testsuite/tests/ghci/scripts/T12550.stdout +++ b/testsuite/tests/ghci/scripts/T12550.stdout @@ -1,3 +1,15 @@ +f :: forall {b} {a :: * -> *}. C a => a b +f :: forall {b} {a :: * -> *}. C a => a b +f :: forall {b} {a :: * -> *}. C a => a b +f :: forall {b} {a :: * -> *}. C a => a b +f :: forall {b} {a :: * -> *}. C a => a b +f :: forall {b} {a :: * -> *}. C a => a b +f ∷ ∀ {b} {a ∷ ★ → ★}. C a ⇒ a b +f ∷ ∀ {b} {a ∷ ★ → ★}. C a ⇒ a b +f ∷ ∀ {b} {a ∷ ★ → ★}. C a ⇒ a b +f ∷ ∀ {b} {a ∷ ★ → ★}. C a ⇒ a b +f ∷ ∀ {b} {a ∷ ★ → ★}. C a ⇒ a b +f ∷ ∀ {b} {a ∷ ★ → ★}. C a ⇒ a b fmap ∷ ∀ {f ∷ ★ → ★} {b} {a}. Functor f ⇒ (a → b) → f a → f b class Functor (f ∷ ★ → ★) where fmap ∷ ∀ a b. (a → b) → f a → f b @@ -51,3 +63,5 @@ class Datatype (d ∷ k) where ... -- Defined in ‘GHC.Generics’ (:*:) ∷ ∀ {g ∷ ★ → ★} {p} {f ∷ ★ → ★}. f p → g p → (:*:) f g p +Rep ∷ ★ → ★ → ★ +M1 ∷ ∀ k. ★ → Meta → (k → ★) → k → ★ diff --git a/testsuite/tests/ghci/scripts/all.T b/testsuite/tests/ghci/scripts/all.T index b89d1c48fd..08ae3a2e87 100755 --- a/testsuite/tests/ghci/scripts/all.T +++ b/testsuite/tests/ghci/scripts/all.T @@ -267,5 +267,5 @@ test('T12091', test('T12523', normal, ghci_script, ['T12523.script']) test('T12024', normal, ghci_script, ['T12024.script']) test('T12447', expect_broken(12447), ghci_script, ['T12447.script']) -test('T12550', expect_broken(12550), ghci_script, ['T12550.script']) test('T10249', normal, ghci_script, ['T10249.script']) +test('T12550', normal, ghci_script, ['T12550.script']) |