[GHC] #11279: Parsing of complex QuasiQuote expression fails

#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

#11279: Parsing of complex QuasiQuote expression fails
-------------------------------------+-------------------------------------
Reporter: alanz | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.11
(Parser) |
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Thomas Miedema

#11279: Parsing of complex QuasiQuote expression fails
-------------------------------------+-------------------------------------
Reporter: alanz | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 7.11
(Parser) |
Resolution: invalid | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Changes (by thomie):
* status: new => closed
* resolution: => invalid
Comment:
This just fails because it uses the old quasi quotes syntax. Replace
`[$istr` by `[istr|`, and it will work. This is mentioned here:
[wiki:Migration/8.0#OldQuasiQuotesyntax].
See also commit 399a5b46591dfbee0499d6afa1bb80ad2fd52598:
{{{
Author: Matthew Pickering
participants (1)
-
GHC