[GHC] #7807: Parse error with "where" and file-ending comment
GHC
cvs-ghc at haskell.org
Tue Apr 2 17:02:12 CEST 2013
#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
More information about the ghc-tickets
mailing list