[GHC] #10663: ghci ignores stuff after an import command and a semicolon

GHC ghc-devs at haskell.org
Fri Jul 24 08:09:39 UTC 2015


#10663: ghci ignores stuff after an import command and a semicolon
-------------------------------------+-------------------------------------
        Reporter:  rwbarton          |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  GHCi              |                 Version:  7.10.1
      Resolution:                    |                Keywords:  newcomer
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  GHC accepts       |  Unknown/Multiple
  invalid program                    |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by thomie):

 Fwiw, you can use the semicolon to set fixities:
 {{{
 > let add = (+); infixl 6 `add`
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10663#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list