[Hugs] #95: local fixity declarations cause static errors

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Hugs] #95: local fixity declarations cause static errors

GHC-2
#95: local fixity declarations cause static errors
---------------------------------+------------------------------------------
 Reporter:  guest                |       Owner:  nobody
     Type:  defect               |      Status:  new  
 Priority:  major                |   Milestone:        
Component:  hugs                 |     Version:  200609
 Keywords:  fixity declarations  |  
---------------------------------+------------------------------------------
 Declarations such as
 {{{
 newExp (*) a c n
   = let
       infixl 7 *
     in
     a ^ n * c
 }}}
 work well with GHC but Hugs complains that "*" is not defined.

 The Report is not explicit about this, at least I couldn't find
 such case discussed there. But as a fixity change for an operator
 introduced as a formal parameter is perfectly reasonable and safe,
 I think that this should be legal.

 Härmel Nestra ([hidden email])

--
Ticket URL: <http://hackage.haskell.org/trac/hugs/ticket/95>
Hugs <http://www.haskell.org/hugs/>
Hugs 98, an interpreter for Haskell
_______________________________________________
Hugs-Bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/hugs-bugs