#1383: mistaken qualified infix syntax could have a nicer error message
------------------------------+---------------------------------------------
  Reporter:  Isaac Dupree     |          Owner:         
      Type:  feature request  |         Status:  new    
  Priority:  normal           |      Milestone:         
 Component:  Compiler         |        Version:  6.6.1  
  Severity:  minor            |       Keywords:         
Difficulty:  Unknown          |             Os:  Unknown
  Testcase:                   |   Architecture:  Unknown
------------------------------+---------------------------------------------
Consider the expression {{{ Prelude.(+) }}};
 we get {{{Not in scope: data constructor `Prelude'}}}.
 Unfortunately this is valid code if the module-referencing name also is
 the name of an in-scope data constructor.  In the common case that it
 isn't, at least (a cursory inspection doesn't find any such exports in the
 libraries, e.g. Data.Map doesn't export a data-constructor Map), a message
 to the effect that infix operators must be qualified like (Prelude.+)
 instead, would be nice. (hierarchical module names probably make this a
 little more complicated somehow)

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