#1128: The impossible happened, code commented
----------------------+-----------------------------------------------------
 Reporter:  humasect  |          Owner:         
     Type:  bug       |         Status:  new    
 Priority:  normal    |      Milestone:  6.6.1  
Component:  Compiler  |        Version:  6.6    
 Severity:  major     |     Resolution:         
 Keywords:            |     Difficulty:  Unknown
 Testcase:            |   Architecture:  Unknown
       Os:  Unknown   |  
----------------------+-----------------------------------------------------
Old description:

> initializeWorld = (\w -> do
>                 worldSetGravity w 0 (-1.0) 0
>                 worldSetERP w 0.2
>                 worldSetCFM w 1e-5
>                 worldSetContactMaxCorrectingVel w 0.9
>                 worldSetContactSurfaceLayer w 0.001
>                 worldSetAutoDisableFlag w 1),
>
> these worldSet* functions are unsafe FFI calls. initializeWorld is Ptr
> Int -> IO ()
>
> commenting this prevents this bug. this code is found in a top level
> declaration:
>
> initiailLevel = Level {
>  ...
> }
>
> of which contains the record for initializeWorld

New description:

 {{{
 initializeWorld = (\w -> do
                 worldSetGravity w 0 (-1.0) 0
                 worldSetERP w 0.2
                 worldSetCFM w 1e-5
                 worldSetContactMaxCorrectingVel w 0.9
                 worldSetContactSurfaceLayer w 0.001
                 worldSetAutoDisableFlag w 1),
 }}}
 these worldSet* functions are unsafe FFI calls. initializeWorld is `Ptr
 Int -> IO ()`

 commenting this prevents this bug. this code is found in a top level
 declaration:
 {{{
 initiailLevel = Level {
  ...
 }
 }}}
 of which contains the record for initializeWorld

Comment (by simonpj):

 You need to give us a few more clues!  For example, the error message you
 get.

 But for this one we'll probably need to be able to reproduce your problem.
 Can you make a small program that demonstrates it?  Thanks

 Simon

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