Skip to content

Fixity in :info for backticks operators

The standard way to define infixity for backtick operators is

infix 4 `elem`

which is accepted by GHC and consistent with the Report. However, in GHCi, :i does not give the backticks:

Prelude> :i elem
elem :: Eq a => a -> [a] -> Bool 	-- Defined in `GHC.List'
infix 4 elem
Trac metadata
Trac field Value
Version 7.4.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component GHCi
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information