[GHC] #7807: Parse error with "where" and file-ending comment

#7807: Parse error with "where" and file-ending comment -----------------------------+---------------------------------------------- Reporter: goldfire | Owner: Type: bug | Status: new Priority: normal | Component: Compiler (Parser) Version: 7.7 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Blockedby: Blocking: | Related: -----------------------------+---------------------------------------------- Consider the following file: {{{ {-# LANGUAGE TypeFamilies #-} type family F a type instance where F Int = Bool {- -} }}} If there is a file-ending newline, after the comment, the file parses. If there is not a file-ending newline, I get a parse error. I wrote the code dealing with {{{type instance where}}} notation, but this seems more related to parsing issues (which I know little about) than {{{type instance where}}}. Please correct me if I'm wrong. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7807 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7807: Parse error with "where" and file-ending comment ----------------------------------+----------------------------------------- Reporter: goldfire | Owner: Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: Compiler (Parser) | Version: 7.7 Keywords: | Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ----------------------------------+----------------------------------------- Changes (by igloo): * priority: normal => high * difficulty: => Unknown * milestone: => 7.8.1 Comment: Thanks for the report, I'll take a look. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7807#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC