Changes between Version 4 and Version 5 of BlockObjects


Ignore:
Timestamp:
Aug 12, 2011 12:36:05 AM (4 years ago)
Author:
chak
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BlockObjects

    v4 v5  
    1212In C, we might use this function as described in Apple's introduction to block: [http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Blocks/Articles/bxGettingStarted.html#//apple_ref/doc/uid/TP40007502-CH7-SW2 Using a Block Directly].  We would like to be able to do the same in Haskell by writing:
    1313{{{
    14 foreign import ccall qsort_b "#include <stdlib.h>" ::
     14foreign import ccall qsort_b "stdlib.h" :: Ptr a -> CSize -> CSize -> (Ptr a -> Ptr a -> Int) -> IO ()
    1515}}}
    1616