diff options
| -rw-r--r-- | compiler/types/Class.hs | 2 | ||||
| -rw-r--r-- | testsuite/tests/ghci/should_run/T11825.hs | 4 | ||||
| -rw-r--r-- | testsuite/tests/ghci/should_run/T11825.script | 3 | ||||
| -rw-r--r-- | testsuite/tests/ghci/should_run/T11825.stdout | 4 | ||||
| -rw-r--r-- | testsuite/tests/ghci/should_run/all.T | 1 |
5 files changed, 13 insertions, 1 deletions
diff --git a/compiler/types/Class.hs b/compiler/types/Class.hs index 09c8da9091..d62f90f09d 100644 --- a/compiler/types/Class.hs +++ b/compiler/types/Class.hs @@ -308,7 +308,7 @@ pprFundeps [] = empty pprFundeps fds = hsep (vbar : punctuate comma (map pprFunDep fds)) pprFunDep :: Outputable a => FunDep a -> SDoc -pprFunDep (us, vs) = hsep [interppSP us, text "->", interppSP vs] +pprFunDep (us, vs) = hsep [interppSP us, arrow, interppSP vs] instance Data.Data Class where -- don't traverse? diff --git a/testsuite/tests/ghci/should_run/T11825.hs b/testsuite/tests/ghci/should_run/T11825.hs new file mode 100644 index 0000000000..c3dd32ea41 --- /dev/null +++ b/testsuite/tests/ghci/should_run/T11825.hs @@ -0,0 +1,4 @@ +{-# LANGUAGE FunctionalDependencies #-} + +class X a b | a -> b where + to :: a -> b diff --git a/testsuite/tests/ghci/should_run/T11825.script b/testsuite/tests/ghci/should_run/T11825.script new file mode 100644 index 0000000000..7c9d10ab62 --- /dev/null +++ b/testsuite/tests/ghci/should_run/T11825.script @@ -0,0 +1,3 @@ +:set -fprint-unicode-syntax +:load T11825.hs +:info X diff --git a/testsuite/tests/ghci/should_run/T11825.stdout b/testsuite/tests/ghci/should_run/T11825.stdout new file mode 100644 index 0000000000..9ab7b1be0c --- /dev/null +++ b/testsuite/tests/ghci/should_run/T11825.stdout @@ -0,0 +1,4 @@ +class X a b | a → b where + to ∷ a → b + {-# MINIMAL to #-} + -- Defined at T11825.hs:3:1 diff --git a/testsuite/tests/ghci/should_run/all.T b/testsuite/tests/ghci/should_run/all.T index 930f14b7a1..08fe33d166 100644 --- a/testsuite/tests/ghci/should_run/all.T +++ b/testsuite/tests/ghci/should_run/all.T @@ -23,3 +23,4 @@ test('T9915', just_ghci, ghci_script, ['T9915.script']) test('T10145', just_ghci, ghci_script, ['T10145.script']) test('T7253', just_ghci, ghci_script, ['T7253.script']) test('T11328', just_ghci, ghci_script, ['T11328.script']) +test('T11825', just_ghci, ghci_script, ['T11825.script']) |
