Skip to content

Commit

Permalink
Simplify callback fun
Browse files Browse the repository at this point in the history
  • Loading branch information
norm2782 committed Nov 4, 2011
1 parent 8f55b23 commit 7473c25
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/in-progress/import_wrapper/import_wrapper.hs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import UHC.Ptr




foreign import jscript "some_function(%*)" foreign import jscript "some_function(%*)"
someFun :: Int -> Int -> FunPtr (Int -> Int -> IO ()) -> IO () someFun :: Int -> Int -> FunPtr (Int -> IO ()) -> IO ()


foreign import jscript "wrapper" foreign import jscript "wrapper"
wrap :: (Int -> Int -> IO ()) -> IO (FunPtr (Int -> Int -> IO ())) wrap :: (Int -> IO ()) -> IO (FunPtr (Int -> IO ()))


myCB :: Int -> Int -> IO () myCB :: Int -> IO ()
myCB _ = alert . show myCB = alert . show


main :: IO () main :: IO ()
main = do main = do
Expand Down

0 comments on commit 7473c25

Please sign in to comment.