[GHC] #5204: request better error message for malformed quasiquoted declaration

GHC cvs-ghc at haskell.org
Thu May 19 00:05:37 CEST 2011


#5204: request better error message for malformed quasiquoted declaration
-----------------------------------+----------------------------------------
    Reporter:  nr                  |       Owner:                              
        Type:  feature request     |      Status:  new                         
    Priority:  normal              |   Component:  Compiler                    
     Version:  7.0.3               |    Keywords:  quasiquotation, pads-haskell
    Testcase:  attached to ticket  |   Blockedby:                              
          Os:  Linux               |    Blocking:                              
Architecture:  x86                 |     Failure:  Other                       
-----------------------------------+----------------------------------------
 I closed a quasiquoted declaration form incorrectly (] rather than |]) and
 the error message I received was not enough to able me to diagnose the
 problem.  The message I received was
 {{{
 Pnm.hs:40:1:
    lexical error in string/character literal at end of input
 }}}
 And I think a more appropriate message would be along the lines of
 "quasiquoted declaration that begins at line 17 was not terminated."

 (I have listed "compiler" as the component but perhaps it should be
 "template haskell" instead?)

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5204>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list