#2722: <<loop> when compiling with -O option with ghc-6.10.0.20081019
-------------------------------+--------------------------------------------
 Reporter:  uwe                |          Owner:         
     Type:  bug                |         Status:  new    
 Priority:  normal             |      Milestone:  Not GHC
Component:  libraries (other)  |        Version:  6.10.1 
 Severity:  normal             |     Resolution:         
 Keywords:  arrows             |     Difficulty:  Unknown
 Testcase:                     |   Architecture:  x86    
       Os:  Linux              |  
-------------------------------+--------------------------------------------
Comment (by uwe):

 The guy who wrote the instance of IOSLA that was me. I took the advice
 from Don Stewarts wiki page for porting arrow code to ghc-6.10.

 As far as I see, in the definition of
 {{{
 id = arr id
 }}}
 the id on the right hand side is another one than id on the left.
 The optimisation RULE above only holds for the instance Category (->), not
 for
 others. So the application of this rule should be restricted to (->).

 By the way, would it be a workaround for me to define the id explicitly,
 not using
 the pure function id?

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