#2931: Template Haskell: Quoting single letter identifier leads to a parse error
at end of input.
-----------------------------+----------------------------------------------
Reporter: int-e | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 6.10.1 | Severity: normal
Keywords: | Testcase:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
-----------------------------+----------------------------------------------
To reproduce the bug with ghci:
{{{
Prelude> :set -XTemplateHaskell
Prelude> let a = 1
Prelude> :t 'a
<interactive>:1:1:
lexical error in string/character literal at character 'a'
}}}
As a module, the following source code works if the last line has no
newline:
{{{
{-# LANGUAGE TemplateHaskell #-}
a = 1
b = 'a
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2931>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs