#2708: Error message should suggest UnboxedTuples language extension
-------------------------------+--------------------------------------------
 Reporter:  tim                |          Owner:                  
     Type:  feature request    |         Status:  new             
 Priority:  low                |      Milestone:  _|_             
Component:  Compiler (Parser)  |        Version:  6.9             
 Severity:  minor              |     Resolution:                  
 Keywords:                     |     Difficulty:  Unknown         
 Testcase:                     |   Architecture:  Unknown/Multiple
       Os:  Unknown/Multiple   |  
-------------------------------+--------------------------------------------
Changes (by simonpj):

  * priority:  normal => low
  * difficulty:  => Unknown
  * milestone:  => _|_

Comment:

 It would be better, yes.  And usually I'm very keen to improve error
 messages.

 The reason we don't is that `-XUnboxedTuples` tells the ''lexical
 analyser'' to recognise the lexemes `(#` and `#)`. The idea is not to
 interfere with Haskell 98 when the extension is switched off.

 For example `(# 3)` is a section in H98.  So just seeing `(#` isn't enough
 to say "I suggest you use `-XUnboxedTuples`".

 So that's why it's tricky.  I can't see an easy way to give you want you
 ask.

 Simon

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2708#comment:1>
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