Changes between Initial Version and Version 2 of Ticket #2275


Ignore:
Timestamp:
May 9, 2008 12:04:19 PM (7 years ago)
Author:
igloo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2275

    • Property Difficulty changed from to Unknown
  • Ticket #2275 – Description

    initial v2  
    11Using {-# OPTIONS_GHC -XArrows -fno-monomorphism-restriction #-}, and Yampa 
    22Starting from line 32, my program contains: 
    3  
     3{{{ 
    44fireworkSF :: Point2 GL.GLdouble -> Point2 GL.GLdouble -> Object 
    55fireworkSF p0 pFinal = proc _ -> do 
     
    1616  where 
    1717    v0 = (pFinal ^-^ p0) ^/ 2 
    18  
     18}}} 
    1919The type error reports: 
     20{{{ 
    2021Firework.hs:32:0: 
    2122    Couldn't match expected type `Point2 GL.GLdouble' 
     
    2728        arising from a use of `.+^' at Firework.hs:34:16-23 
    2829    When generalising the type(s) for `fireworkSF' 
    29  
     30}}} 
    3031Indicating that the bug is something to do with line 34.  The actual bug is that the last line of the paste should read: 
     32{{{ 
    3133    v0 = (pFinal .-. p0) ^/ 2 
     34}}}