[GHC] #1277: illegal chars accepted in literal strings

GHC trac at galois.com
Mon Apr 16 06:31:28 EDT 2007


#1277: illegal chars accepted in literal strings
----------------------------------------------+-----------------------------
    Reporter:  malcolm.wallace at cs.york.ac.uk  |       Owner:          
        Type:  bug                            |      Status:  new     
    Priority:  normal                         |   Milestone:          
   Component:  Compiler                       |     Version:  6.6     
    Severity:  normal                         |    Keywords:          
  Difficulty:  Easy (1 hr)                    |    Testcase:          
Architecture:  Multiple                       |          Os:  Multiple
----------------------------------------------+-----------------------------
Ghc accepts literal tab characters inside literal strings, even though
 these are not permitted by Haskell'98.
 Example:

 Prelude> "^I"
 "\t"
 Prelude>

 Other compilers correctly reject them:

 nhc98> "^I"
 Error at line 1, column 2: Tab in literal string/char. Use \t instead.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1277>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
-------------- next part --------------
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs at haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


More information about the Glasgow-haskell-bugs mailing list