#1277: illegal chars accepted in literal strings
----------------------------------------------+-----------------------------
    Reporter:  [EMAIL PROTECTED]  |       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
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to