[GHC] #3555: Vectorisation error with negative Double const

GHC trac at galois.com
Sat Oct 3 00:57:41 EDT 2009


#3555: Vectorisation error with negative Double const
-----------------------------------+----------------------------------------
 Reporter:  ams                    |          Owner:  rl              
     Type:  bug                    |         Status:  new             
 Priority:  normal                 |      Milestone:                  
Component:  Data Parallel Haskell  |        Version:  6.13            
 Severity:  normal                 |     Resolution:                  
 Keywords:                         |       Testcase:                  
       Os:  Unknown/Multiple       |   Architecture:  Unknown/Multiple
-----------------------------------+----------------------------------------
Comment (by rl):

 This is because `-1.0` gets desugared to `negate 1.0` and `negate` is a
 method of `Num`. Unfortunately, Haskell doesn't have negative literals. It
 would be possible to add support to the vectoriser for this particular
 case but I'm not sure it's worth it since there is an easy workaround and
 the problem will go away once we are able to vectorise the prelude.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3555#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list