[GHC] #7625: Semicolon is not handled between imports at the ghci command prompt

#7625: Semicolon is not handled between imports at the ghci command prompt -----------------------------+---------------------------------------------- Reporter: JohnWiegley | Owner: Type: bug | Status: new Priority: normal | Component: GHCi Version: 7.4.2 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Other | Blockedby: Blocking: | Related: -----------------------------+---------------------------------------------- You cannot use "import Data.List ; import Control.Monad" at the ghci command prompt. It gives: <no location info>: parse error in import declaration -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7625 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7625: Semicolon is not handled between imports at the ghci command prompt -----------------------------+---------------------------------------------- Reporter: JohnWiegley | Owner: Type: bug | Status: patch Priority: normal | Component: GHCi Version: 7.4.2 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Other | Blockedby: Blocking: | Related: -----------------------------+---------------------------------------------- Changes (by parcs): * status: new => patch Comment: Patch attached. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7625#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7625: Semicolon is not handled between imports at the ghci command prompt -------------------------------+-------------------------------------------- Reporter: JohnWiegley | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.4.2 Resolution: | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Other | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: -------------------------------+-------------------------------------------- Changes (by igloo): * status: patch => new * difficulty: => Unknown Comment: Thanks for the patch, parcs. However, if I understand it correctly, it only works for import declarations? If we support that, then we should presumably also support {{{ import Data.List ; let x = 1 }}} or {{{ let { x = 1 } ; let { y = 2 } }}} John, how did you come across this? -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7625#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7625: Semicolon is not handled between imports at the ghci command prompt -------------------------------+-------------------------------------------- Reporter: JohnWiegley | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.4.2 Resolution: | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Other | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: -------------------------------+-------------------------------------------- Comment(by parcs): Yes, it only works for multiple import declarations. I can investigate supporting the two examples you mentioned. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7625#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7625: Semicolon is not handled between imports at the ghci command prompt -------------------------------+-------------------------------------------- Reporter: JohnWiegley | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: GHCi | Version: 7.4.2 Resolution: | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Other | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: -------------------------------+-------------------------------------------- Comment(by JohnWiegley): It was brought up in #haskell, I just reported it because another user was having difficulty registering for the Trac. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7625#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7625: Semicolon is not handled between imports at the ghci command prompt -------------------------------+-------------------------------------------- Reporter: JohnWiegley | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: GHCi | Version: 7.4.2 Resolution: | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Other | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: -------------------------------+-------------------------------------------- Changes (by igloo): * milestone: => 7.8.1 -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7625#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC