• thomie's avatar
    ghci: fixity declarations for infix data constructors (#10018) · e809ef57
    thomie authored
    Declaring a custom fixity for an infix data constructor should work:
    
        Prelude> data Infix a b = a :@: b; infixl 4 :@:
    
    This is a followup to #2947, which handled fixity declarations in ghci
    statements (e.g. let add = (+); infixl 6 `add`).
    
    Support for declarations (data, type, newtype, class, instance,
    deriving, and foreign) was added to GHCi in #4929.
    
    Reviewers: simonpj, austin, thomie
    
    Subscribers: thomie, bgamari
    
    Differential Revision: https://phabricator.haskell.org/D1028
    
    GHC Trac Issues: #10018
    e809ef57
HscMain.hs 68.3 KB