[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 <thomasmiedema@…>): In [changeset:"2032635b80d8fc34dc168e2c22f51f8a69d97a1c/ghc" 2032635/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="2032635b80d8fc34dc168e2c22f51f8a69d97a1c" Testsuite: fix qq005 and qq006 (#11279) With 399a5b46591dfbee0499d6afa1bb80ad2fd52598, the old `[$foo| ... |]` syntax for quasi-quotes is no longer allowed. }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11279#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#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 <matthewtpickering@gmail.com> Date: Fri Nov 27 16:16:39 2015 +0100 Remove deprecated quasiquoter syntax. In spirit, this reverts 9ba922ee06b048774d7a82964867ff768a78126e The syntax has been deprecated with a warning since 2010. Reviewers: austin, bgamari Reviewed By: bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1530 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11279#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC