summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2016-11-21 13:44:21 -0500
committerBen Gamari <ben@smart-cactus.org>2016-11-21 13:44:26 -0500
commite7ec521ecf7dfcb42d39763e84d3447127747aed (patch)
tree6640d622cacc164f0bd1c0c5880deaa9b931efde
parentb98dbdf667744c288f03525d5e012563d31143ce (diff)
downloadhaskell-e7ec521ecf7dfcb42d39763e84d3447127747aed.tar.gz
testsuite: Add (still failing) testcase for #12550
I thought that this would naturally resolve itself with the elimination of the Type pretty-printer but somehow all of the stars in result position of an arrow are still rendered in non-Unicode syntax. Quite odd. Test Plan: Validate Reviewers: austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2704 GHC Trac Issues: #12550
-rw-r--r--testsuite/tests/ghci/scripts/T12550.script10
-rw-r--r--testsuite/tests/ghci/scripts/T12550.stdout53
-rwxr-xr-xtestsuite/tests/ghci/scripts/all.T1
3 files changed, 64 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/T12550.script b/testsuite/tests/ghci/scripts/T12550.script
new file mode 100644
index 0000000000..3964035e8b
--- /dev/null
+++ b/testsuite/tests/ghci/scripts/T12550.script
@@ -0,0 +1,10 @@
+:set -fprint-unicode-syntax -fprint-explicit-foralls
+
+:t fmap
+:i fmap
+:k Functor
+:m + GHC.Generics
+:i Functor
+:t datatypeName
+:i datatypeName
+:t (:*:)
diff --git a/testsuite/tests/ghci/scripts/T12550.stdout b/testsuite/tests/ghci/scripts/T12550.stdout
new file mode 100644
index 0000000000..442bc05c71
--- /dev/null
+++ b/testsuite/tests/ghci/scripts/T12550.stdout
@@ -0,0 +1,53 @@
+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
+ ...
+ -- Defined in ‘GHC.Base’
+Functor ∷ (★ → ★) → Constraint
+class Functor (f ∷ ★ → ★) where
+ fmap ∷ ∀ a b. (a → b) → f a → f b
+ (<$) ∷ ∀ a b. a → f b → f a
+ {-# MINIMAL fmap #-}
+ -- Defined in ‘GHC.Base’
+instance Functor V1 -- Defined in ‘GHC.Generics’
+instance Functor (URec Char) -- Defined in ‘GHC.Generics’
+instance Functor (URec Double) -- Defined in ‘GHC.Generics’
+instance Functor (URec Float) -- Defined in ‘GHC.Generics’
+instance Functor (URec Int) -- Defined in ‘GHC.Generics’
+instance Functor (URec Word) -- Defined in ‘GHC.Generics’
+instance Functor U1 -- Defined in ‘GHC.Generics’
+instance ∀ (f ∷ ★ → ★). Functor f ⇒ Functor (Rec1 f)
+ -- Defined in ‘GHC.Generics’
+instance Functor Par1 -- Defined in ‘GHC.Generics’
+instance ∀ i (c ∷ Meta) (f ∷ ★ → ★). Functor f ⇒ Functor (M1 i c f)
+ -- Defined in ‘GHC.Generics’
+instance ∀ i c. Functor (K1 i c) -- Defined in ‘GHC.Generics’
+instance ∀ (f ∷ ★ → ★) (g ∷ ★ → ★).
+ (Functor g, Functor f) ⇒
+ Functor (f :.: g)
+ -- Defined in ‘GHC.Generics’
+instance ∀ (f ∷ ★ → ★) (g ∷ ★ → ★).
+ (Functor g, Functor f) ⇒
+ Functor (f :+: g)
+ -- Defined in ‘GHC.Generics’
+instance ∀ (f ∷ ★ → ★) (g ∷ ★ → ★).
+ (Functor g, Functor f) ⇒
+ Functor (f :*: g)
+ -- Defined in ‘GHC.Generics’
+instance ∀ a. Functor (Either a) -- Defined in ‘Data.Either’
+instance Functor [] -- Defined in ‘GHC.Base’
+instance Functor Maybe -- Defined in ‘GHC.Base’
+instance Functor IO -- Defined in ‘GHC.Base’
+instance ∀ r. Functor ((->) r) -- Defined in ‘GHC.Base’
+instance ∀ a. Functor ((,) a) -- Defined in ‘GHC.Base’
+datatypeName
+ ∷ ∀ {d} {t ∷ ★ → (★ → ★) → ★ → ★} {f ∷ ★ → ★} {a}.
+ Datatype d ⇒
+ t d f a → [Char]
+class Datatype (d ∷ k) where
+ datatypeName ∷ ∀ k1 (t ∷ k → (k1 → ★) → k1 → ★) (f ∷ k1
+ → ★) (a ∷ k1).
+ t d f a → [Char]
+ ...
+ -- Defined in ‘GHC.Generics’
+(:*:) ∷ ∀ {g ∷ ★ → ★} {p} {f ∷ ★ → ★}. f p → g p → (:*:) f g p
diff --git a/testsuite/tests/ghci/scripts/all.T b/testsuite/tests/ghci/scripts/all.T
index e9a41a966d..53cb1e3336 100755
--- a/testsuite/tests/ghci/scripts/all.T
+++ b/testsuite/tests/ghci/scripts/all.T
@@ -267,3 +267,4 @@ 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'])