#include "newmacros.h" #include "runtime.h" #define FN_System_46primGetProgName_35 ((void*)startLabel+8) #define CT_v196 ((void*)startLabel+24) #define F0_System_46primGetProgName_35 ((void*)startLabel+32) #define CT_v197 ((void*)startLabel+56) #define CT_v198 ((void*)startLabel+104) void FR_System_46primGetProgName_35(void); extern Node FN_NHC_46Internal_46_95mkIOok0[]; extern Node FN_Prelude_46_46[]; extern Node F0_Prelude_46Monad_46NHC_46Internal_46IO_46return[]; extern Node F0_CString_46fromCString[]; extern Node FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62_61[]; static Node startLabel[] = { bytes2word(1,0,0,1) , useLabel(CT_v196) , /* FN_System_46primGetProgName_35: (byte 0) */ bytes2word(PUSH_ARG_I1,EVAL,POP_I1,PRIMITIVE) , useLabel(FR_System_46primGetProgName_35) , bytes2word(RETURN_EVAL,ENDCODE,0,0) , bytes2word(0,0,0,0) , /* CT_v196: (byte 0) */ HW(0,1) , 0 , /* F0_System_46primGetProgName_35: (byte 0) */ CAPTAG(useLabel(FN_System_46primGetProgName_35),1) , bytes2word(0,0,0,0) , useLabel(CT_v197) ,}; Node FN_System_46primGetProgName[] = { bytes2word(NEEDHEAP_I32,PUSH_HEAP,HEAP_CVAL_I3,HEAP_CVAL_I4) , bytes2word(RETURN_EVAL,ENDCODE,0,0) , bytes2word(0,0,0,0) , /* CT_v197: (byte 0) */ HW(2,0) , 0 ,}; Node CF_System_46primGetProgName[] = { VAPTAG(useLabel(FN_System_46primGetProgName)) , VAPTAG(useLabel(FN_NHC_46Internal_46_95mkIOok0)) , useLabel(F0_System_46primGetProgName_35) , bytes2word(0,0,0,0) , useLabel(CT_v198) ,}; Node FN_System_46getProgName[] = { bytes2word(NEEDHEAP_I32,HEAP_CVAL_I3,HEAP_CVAL_I4,HEAP_CVAL_I5) , bytes2word(PUSH_HEAP,HEAP_CVAL_P1,6,HEAP_CVAL_P1) , bytes2word(7,HEAP_OFF_N1,5,RETURN_EVAL) , bytes2word(ENDCODE,0,0,0) , bytes2word(0,0,0,0) , /* CT_v198: (byte 0) */ HW(5,0) , 0 ,}; Node CF_System_46getProgName[] = { VAPTAG(useLabel(FN_System_46getProgName)) , VAPTAG(useLabel(FN_Prelude_46_46)) , useLabel(F0_Prelude_46Monad_46NHC_46Internal_46IO_46return) , useLabel(F0_CString_46fromCString) , VAPTAG(useLabel(FN_Prelude_46Monad_46NHC_46Internal_46IO_46_62_62_61)) , useLabel(CF_System_46primGetProgName) ,}; #include #include /* foreign import ccall "primGetProgName" System.primGetProgName# 1 :: Prelude.() -> PackedString.PackedString */ extern char* primGetProgName(void); #ifdef PROFILE static SInfo pf_System_46primGetProgName_35 = {"System","System.primGetProgName#","PackedString.PackedString"}; #endif C_HEADER(FR_System_46primGetProgName_35) { NodePtr nodeptr; char* result; /* void arg1 */; result = primGetProgName(); nodeptr = nhc_mkString((char*)result); INIT_PROFINFO(nodeptr,&pf_System_46primGetProgName_35); C_RETURN(nodeptr); }