#include "newmacros.h" #include "runtime.h" #define FN_IO_46hGetPosnC_35 ((void*)startLabel+8) #define CT_v245 ((void*)startLabel+24) #define F0_IO_46hGetPosnC_35 ((void*)startLabel+32) #define FN_IO_46hGetPosnC ((void*)startLabel+44) #define CT_v246 ((void*)startLabel+56) #define CF_IO_46hGetPosnC ((void*)startLabel+64) #define CT_v247 ((void*)startLabel+108) #define FN_LAMBDA243 ((void*)startLabel+148) #define v248 ((void*)startLabel+170) #define CT_v250 ((void*)startLabel+200) #define F0_LAMBDA243 ((void*)startLabel+208) #define FN_LAMBDA242 ((void*)startLabel+260) #define CT_v251 ((void*)startLabel+284) #define F0_LAMBDA242 ((void*)startLabel+292) #define FN_LAMBDA241 ((void*)startLabel+312) #define CT_v252 ((void*)startLabel+344) #define F0_LAMBDA241 ((void*)startLabel+352) #define FN_LAMBDA240 ((void*)startLabel+372) #define CT_v254 ((void*)startLabel+392) #define CF_LAMBDA240 ((void*)startLabel+400) #define ST_v253 ((void*)startLabel+404) void FR_IO_46hGetPosnC_35(void); extern Node FN_NHC_46Internal_46_95mkIOok1[]; extern Node FN_NHC_46Internal_46_95apply1[]; extern Node FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62_61[]; extern Node FN_Prelude_46Eq_46NHC_46FFI_46Ptr_46_61_61[]; extern Node CF_NHC_46FFI_46nullPtr[]; extern Node CF_NHC_46FFI_46getErrNo[]; extern Node FN_NHC_46FFI_46newForeignPtr[]; extern Node FN_NHC_46Internal_46_95apply2[]; extern Node CF_NHC_46FFI_46finalizerFree[]; extern Node FN_Prelude_46Monad_46NHC_46Internal_46IO_46return[]; extern Node FN_NHC_46FFI_46throwIOError[]; static Node startLabel[] = { bytes2word(1,0,0,1) , useLabel(CT_v245) , /* FN_IO_46hGetPosnC_35: (byte 0) */ bytes2word(PUSH_ARG_I1,EVAL,POP_I1,PRIMITIVE) , useLabel(FR_IO_46hGetPosnC_35) , bytes2word(RETURN_EVAL,ENDCODE,0,0) , bytes2word(0,0,0,0) , /* CT_v245: (byte 0) */ HW(0,1) , 0 , /* F0_IO_46hGetPosnC_35: (byte 0) */ CAPTAG(useLabel(FN_IO_46hGetPosnC_35),1) , bytes2word(0,0,0,0) , useLabel(CT_v246) , /* FN_IO_46hGetPosnC: (byte 0) */ bytes2word(NEEDHEAP_I32,PUSH_HEAP,HEAP_CVAL_I3,HEAP_CVAL_I4) , bytes2word(RETURN_EVAL,ENDCODE,0,0) , bytes2word(0,0,0,0) , /* CT_v246: (byte 0) */ HW(2,0) , 0 , /* CF_IO_46hGetPosnC: (byte 0) */ VAPTAG(useLabel(FN_IO_46hGetPosnC)) , VAPTAG(useLabel(FN_NHC_46Internal_46_95mkIOok1)) , useLabel(F0_IO_46hGetPosnC_35) , bytes2word(1,0,0,1) , useLabel(CT_v247) ,}; Node FN_IO_46hGetPosn[] = { bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_CVAL_I4,HEAP_OFF_N1) , bytes2word(2,HEAP_ARG,1,HEAP_CVAL_I5) , bytes2word(HEAP_ARG,1,PUSH_HEAP,HEAP_CVAL_P1) , bytes2word(6,HEAP_OFF_N1,6,HEAP_OFF_N1) , bytes2word(4,RETURN_EVAL,ENDCODE,0) , bytes2word(0,0,0,0) , /* CT_v247: (byte 0) */ HW(4,1) , 0 ,}; Node F0_IO_46hGetPosn[] = { CAPTAG(useLabel(FN_IO_46hGetPosn),1) , VAPTAG(useLabel(FN_IO_46hGetPosnC)) , VAPTAG(useLabel(FN_NHC_46Internal_46_95apply1)) , CAPTAG(useLabel(FN_LAMBDA243),1) , VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62_61)) , bytes2word(0,0,2,0) , bytes2word(1,1,0,2) , useLabel(CT_v250) , /* FN_LAMBDA243: (byte 0) */ bytes2word(NEEDHEAP_I32,PUSH_HEAP,HEAP_CVAL_I3,HEAP_ARG) , bytes2word(2,HEAP_CVAL_I4,EVAL,NEEDHEAP_I32) , bytes2word(JUMPFALSE,13,0,HEAP_CVAL_I5) , bytes2word(HEAP_ARG,1,PUSH_HEAP,HEAP_CVAL_P1) , bytes2word(6,HEAP_CVAL_P1,7,HEAP_OFF_N1) , /* v248: (byte 2) */ bytes2word(4,RETURN_EVAL,HEAP_CVAL_P1,8) , bytes2word(HEAP_CVAL_P1,9,HEAP_OFF_N1,2) , bytes2word(HEAP_CVAL_P1,10,HEAP_ARG,2) , bytes2word(HEAP_CVAL_P1,11,HEAP_ARG,1) , bytes2word(PUSH_HEAP,HEAP_CVAL_P1,6,HEAP_OFF_N1) , bytes2word(7,HEAP_OFF_N1,4,RETURN_EVAL) , bytes2word(ENDCODE,0,0,0) , bytes2word(0,0,0,0) , /* CT_v250: (byte 0) */ HW(9,2) , 0 , /* F0_LAMBDA243: (byte 0) */ CAPTAG(useLabel(FN_LAMBDA243),2) , VAPTAG(useLabel(FN_Prelude_46Eq_46NHC_46FFI_46Ptr_46_61_61)) , useLabel(CF_NHC_46FFI_46nullPtr) , CAPTAG(useLabel(FN_LAMBDA241),1) , VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62_61)) , useLabel(CF_NHC_46FFI_46getErrNo) , VAPTAG(useLabel(FN_NHC_46FFI_46newForeignPtr)) , VAPTAG(useLabel(FN_NHC_46Internal_46_95apply2)) , useLabel(CF_NHC_46FFI_46finalizerFree) , CAPTAG(useLabel(FN_LAMBDA242),1) , bytes2word(0,0,2,0) , bytes2word(1,1,0,2) , useLabel(CT_v251) , /* FN_LAMBDA242: (byte 0) */ bytes2word(NEEDHEAP_I32,HEAP_CVAL_N1,1,HEAP_ARG_ARG) , bytes2word(1,2,PUSH_HEAP,HEAP_CVAL_I3) , bytes2word(HEAP_OFF_N1,4,RETURN_EVAL,ENDCODE) , bytes2word(0,0,0,0) , 0 , CONSTR(0,2,0) , /* CT_v251: (byte 0) */ HW(1,2) , 0 , /* F0_LAMBDA242: (byte 0) */ CAPTAG(useLabel(FN_LAMBDA242),2) , VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46return)) , bytes2word(0,0,2,0) , bytes2word(1,1,0,2) , useLabel(CT_v252) , /* FN_LAMBDA241: (byte 0) */ bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_CVAL_N1,1) , bytes2word(HEAP_CVAL_N1,2,HEAP_ARG,1) , bytes2word(PUSH_HEAP,HEAP_CVAL_I4,HEAP_OFF_N1,5) , bytes2word(HEAP_OFF_N1,5,HEAP_OFF_N1,5) , bytes2word(HEAP_ARG,2,RETURN_EVAL,ENDCODE) , bytes2word(0,0,0,0) , CONSTR(1,1,0) , CONSTR(0,0,0) , /* CT_v252: (byte 0) */ HW(2,2) , 0 , /* F0_LAMBDA241: (byte 0) */ CAPTAG(useLabel(FN_LAMBDA241),2) , VAPTAG(useLabel(FN_LAMBDA240)) , VAPTAG(useLabel(FN_NHC_46FFI_46throwIOError)) , bytes2word(0,0,0,0) , useLabel(CT_v254) , /* FN_LAMBDA240: (byte 0) */ bytes2word(NEEDHEAP_I32,PUSH_CADR_N1,2,STRING) , bytes2word(RETURN,ENDCODE,0,0) , bytes2word(0,0,0,0) , CONSTRW(1,0) , useLabel(ST_v253) , /* CT_v254: (byte 0) */ HW(0,0) , 0 , /* CF_LAMBDA240: (byte 0) */ VAPTAG(useLabel(FN_LAMBDA240)) , /* ST_v253: (byte 0) */ bytes2word(104,71,101,116) , bytes2word(80,111,115,110) , bytes2word(0,0,0,0) ,}; #include #include /* foreign import ccall "hGetPosnC" IO.hGetPosnC# 1 :: FFI.ForeignObj -> FFI.Ptr */ extern void* hGetPosnC(void*); #ifdef PROFILE static SInfo pf_IO_46hGetPosnC_35 = {"IO","IO.hGetPosnC#","FFI.Ptr"}; #endif C_HEADER(FR_IO_46hGetPosnC_35) { NodePtr nodeptr; void* result; void* arg1; nodeptr = C_GETARG1(1); IND_REMOVE(nodeptr); arg1 = (void*)derefForeignObj((ForeignObj*)GET_INT_VALUE(nodeptr)); result = hGetPosnC(arg1); nodeptr = nhc_mkInt((int)result); INIT_PROFINFO(nodeptr,&pf_IO_46hGetPosnC_35); C_RETURN(nodeptr); }