summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/ghci012.stdout
diff options
context:
space:
mode:
authorLeif Metcalf <me@leif.nz>2021-01-17 19:36:00 +1300
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-02-22 18:26:54 -0500
commit22ef7ab10097f92a71369ea99f2f24deea6be080 (patch)
treee1c01117937580827f403b499311c9674ed67735 /testsuite/tests/ghci/scripts/ghci012.stdout
parentb068103d60fd67708916ca5e778f5f833fcc34da (diff)
downloadhaskell-22ef7ab10097f92a71369ea99f2f24deea6be080.tar.gz
GHCi: Always show fixity
We used to only show the fixity of an operator if it wasn't the default fixity. Usually this was when the fixity was undeclared, but it could also arise if one declared the fixity of an operator as infixl 9, the default fixity. This commit makes it so that :i always shows the fixity of an operator, even if it is unset. We may want in the future to keep track of whether an operator's fixity is defined, so that we can print a comment like infixl 9 # -- Assumed, since no fixity is declared. for operators with no specified fixity, and so that we can print fixity of a term with a non-symbolic term when its fixity has been manually specified as infixl 9. Implements #19200.
Diffstat (limited to 'testsuite/tests/ghci/scripts/ghci012.stdout')
-rw-r--r--testsuite/tests/ghci/scripts/ghci012.stdout1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/ghci012.stdout b/testsuite/tests/ghci/scripts/ghci012.stdout
index 32ceac8b06..c4d2cbdc2b 100644
--- a/testsuite/tests/ghci/scripts/ghci012.stdout
+++ b/testsuite/tests/ghci/scripts/ghci012.stdout
@@ -1 +1,2 @@
($$$) :: [b -> c] -> [b] -> [c] -- Defined at <interactive>:1:8
+infixl 9 $$$