--Haskell values (stable ptr's). 

inHaskellValue :: ArgIn a
inHaskellValue x p = do
   stable <- newStablePtr x
   writeVarStablePtr stable (castPtr p)
inHaskellValue :: ArgIn a
inHaskellValue x p = do
   stable <- newStablePtr x
   writeVarStablePtr stable (castPtr p)
inHaskellValue x p = do
   stable <- newStablePtr x
   writeVarStablePtr stable (castPtr p)