#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
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to