[GHC] #11279: Parsing of complex QuasiQuote expression fails
GHC
ghc-devs at haskell.org
Wed Dec 23 08:11:12 UTC 2015
#11279: Parsing of complex QuasiQuote expression fails
-------------------------------------+-------------------------------------
Reporter: alanz | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.11
(Parser) |
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
The file
{{{#!hs
{-# LANGUAGE QuasiQuotes #-}
testComplex = assertBool "" ([$istr|
ok
#{Foo 4 "Great!" : [Foo 3 "Scott!"]}
then
|] == ("\n" ++
" ok\n" ++
"[Foo 4 \"Great!\",Foo 3 \"Scott!\"]\n" ++
" then\n"))
}}}
parses (with renamer errors) under 7.10.3, but fails with
{{{#!hs
/home/alanz/tmp/Foo.hs:5:1: error:
parse error (possibly incorrect indentation or mismatched brackets)
}}}
using current master (721d56d596848f9c772d08ef8693dff8ab9417b6)
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11279>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list