ڋ      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~portable, ffi alpha gracjanpolak@gmail.com 9A value that can be pushed and poped from the Lua stack. . All instances are natural, except following:  LuaState1 push ignores its argument, pushes current state  (), push ignores its argument, just pushes nil  Ptr ()C pushes light user data, peek checks for lightuserdata or userdata NPushes a value onto Lua stack, casting it into meaningfully nearest Lua type. Check if at index n6 there is a convertible Lua value and if so return it  wrapped in Just . Return Nothing otherwise. =Lua type id code of the vaule expected. Parameter is unused. Enumeration used by gc function.  "Enumeration used as type tag. See lua_type in Lua Reference Manual.  Wrapper for  lua_Number. See  lua_Number in Lua Reference Manual.  HsLua uses C double as  lua_Integer.  Wrapper for  lua_Integer. See  lua_Integer in Lua Reference Manual.  HsLua uses C  ptrdiff_t as  lua_Integer.  Wrapper for  lua_CFunction. See  lua_CFunction in Lua Reference Manual.  Wrapper for  lua_Writer. See  lua_Writer in Lua Reference Manual.  Wrapper for  lua_Reader. See  lua_Reader in Lua Reference Manual.  Wrapper for  lua_Alloc. See  lua_Alloc in Lua Reference Manual.  Wrapper for  lua_State *. See  lua_State in Lua Reference Manual.  See  LUA_MULTRET in Lua Reference Manual. !See  lua_settop in Lua Reference Manual. "See lua_createtable in Lua Reference Manual. #See  lua_objlen in Lua Reference Manual. $See lua_pop in Lua Reference Manual. %See  lua_newtable in Lua Reference Manual. &See lua_pushcclosure in Lua Reference Manual. 'See lua_pushcfunction in Lua Reference Manual. See  lua_strlen in Lua Reference Manual. (See lua_type in Lua Reference Manual. )See lua_isfunction in Lua Reference Manual. *See  lua_istable in Lua Reference Manual. +See lua_islightuserdata in Lua Reference Manual. ,See  lua_isnil in Lua Reference Manual. -See  lua_isboolean in Lua Reference Manual. .See  lua_isthread in Lua Reference Manual. See lua_none in Lua Reference Manual. See  lua_noneornil in Lua Reference Manual. /See LUA_REGISTRYINDEX in Lua Reference Manual. 0See LUA_ENVIRONINDEX in Lua Reference Manual. 1See LUA_GLOBALSINDEX in Lua Reference Manual. 2See lua_upvalueindex in Lua Reference Manual. 3See  lua_atpanic in Lua Reference Manual. 4See  lua_tostring in Lua Reference Manual. 5See  lua_tothread in Lua Reference Manual. 6See lua_touserdata in Lua Reference Manual. 7See  lua_typename in Lua Reference Manual. 8See  lua_xmove in Lua Reference Manual. 9See  lua_yield in Lua Reference Manual. :See lua_checkstack in Lua Reference Manual. ;See  lua_newstate and  luaL_newstate in Lua Reference Manual. <See  lua_close in Lua Reference Manual. =See  lua_concat in Lua Reference Manual. >See lua_call and lua_call# in Lua Reference Manual. This is  a wrapper over  lua_pcall, as lua_call% is unsafe in controlled environment  like Haskell VM. ?See  lua_pcall in Lua Reference Manual. @See  lua_cpcall in Lua Reference Manual. ASee  lua_getfield in Lua Reference Manual. BSee  lua_setfield in Lua Reference Manual. CSee  lua_getglobal in Lua Reference Manual. DSee  lua_setglobal in Lua Reference Manual. ESee  luaL_openlibs in Lua Reference Manual. FGSee  lua_equal in Lua Reference Manual. HSee  lua_error in Lua Reference Manual. error :: LuaState -> IO Int -error l = liftM fromIntegral (c_lua_error l) See lua_gc in Lua Reference Manual. ISee  lua_getfenv in Lua Reference Manual. JSee lua_getmetatable in Lua Reference Manual. KSee  lua_gettable in Lua Reference Manual. LSee  lua_gettop in Lua Reference Manual. MSee lua_getupvalue in Lua Reference Manual. NSee  lua_insert in Lua Reference Manual. OSee lua_iscfunction in Lua Reference Manual. PSee  lua_isnumber in Lua Reference Manual. QSee  lua_isstring in Lua Reference Manual. RSee lua_isuserdata in Lua Reference Manual. SSee  lua_lessthan in Lua Reference Manual. TSee  luaL_loadfile in Lua Reference Manual. USee luaL_loadstring in Lua Reference Manual. VSee  lua_newthread in Lua Reference Manual. WSee lua_newuserdata in Lua Reference Manual. XSee lua_next in Lua Reference Manual. YSee lua_pushboolean in Lua Reference Manual. ZSee lua_pushinteger in Lua Reference Manual. [See lua_pushlightuserdata in Lua Reference Manual. \See  lua_pushnil in Lua Reference Manual. ]See lua_pushnumber in Lua Reference Manual. ^See lua_pushstring in Lua Reference Manual. _See lua_pushthread in Lua Reference Manual. `See  lua_pushvalue in Lua Reference Manual. aSee  lua_rawequal in Lua Reference Manual. bSee  lua_rawget in Lua Reference Manual. cSee  lua_rawgeti in Lua Reference Manual. dSee  lua_rawset in Lua Reference Manual. eSee  lua_rawseti in Lua Reference Manual. fSee  lua_remove in Lua Reference Manual. gSee  lua_replace in Lua Reference Manual. hSee  lua_resume in Lua Reference Manual. iSee  lua_setfenv in Lua Reference Manual. jSee lua_setmetatable in Lua Reference Manual. kSee  lua_settable in Lua Reference Manual. lSee lua_setupvalue in Lua Reference Manual. mSee  lua_status in Lua Reference Manual. nSee  lua_toboolean in Lua Reference Manual. oSee lua_tocfunction in Lua Reference Manual. pSee  lua_tointeger in Lua Reference Manual. qSee  lua_tonumber in Lua Reference Manual. rSee  lua_topointer in Lua Reference Manual. sSee  lua_register in Lua Reference Manual. tSee luaL_newmetatable in Lua Reference Manual. uSee  luaL_argerror+ in Lua Reference Manual. Contrary to the A manual, Haskell function does return with value less than zero. vLike  getglobal", but knows about packages. e. g.   getglobal l "math.sin" returns correct result w@Create new foreign Lua function. Function created can be called 1 by Lua engine. Remeber to free the pointer with  freecfunction. xAConvert a Haskell function to Lua function. Any Haskell function ! can be converted provided that: + all arguments are instances of StackValue ? * return type is IO t, where t is an instance of StackValue AAny Haskell exception will be converted to a string and returned  as Lua error. y#Free function pointer created with  newcfunction. zCall a Lua procedure. Use as: 0 callproc l "proc" "abc" (1::Int) (5.0::Double) {Call a Lua function. Use as: : Just v <- callfunc l "proc" "abc" (1::Int) (5.0::Double) |5Pushes Haskell function converted to a Lua function. 7 All values created will be garbage collected. Use as:   Lua.pushhsfunction l myfun  Lua.setglobal l "myfun" You are not allowed to use  lua_error anywhere, but 4 use an error code of (-1) to the same effect. Push ) error message as the sole return value. }<Imports a Haskell function and registers it at global name. ~  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~  /013>:<=@"FGHIACJKLMN-O)+,PQ*.RS;%VWX#?$Y&'Z[\]^_`abcdesfghiBDjk!lmnopqr456(7289ETUtuz{vwyx|}~    !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|} portable, ffialphabenjamin.geer@gmail.com~=Thrown when an error occurs in reading a configuration file. 'Represents an open configuration file. AOpens a config file and returns an opaque reference to the file. % You must close this reference using close when you're done reading  the file. Closes a configuration file. <Returns a boolean value from a configuration file. Returns False 4 if the value is not defined in the file. Example:  someVal = true ?Returns a string value from a configuration file. Returns the A empty string if the value is not defined in the file. Example:  someVal = "foo" >Returns an integer value from a configuration file. Example:  someVal = 2 <Returns a double value from a configuration file. Example:  someVal = 3.1415926 >Returns a list of strings (i.e. a Lua table in which the keys E are integers and the values are strings) from a configuration file.  Example: # someVal = { "foo", "bar", "baz" } CReturns a list of lists, i.e. a Lua table of tables. In the outer J table, the keys are integers and the values are tables, and in the inner E tables, the keys are integers and the values are strings. Example:  someVal = { + { "foo one", "foo two", "foo three" }, * { "bar one", "bar two", "bar three" }  } @Returns an association list, i.e. a Lua table in which the keys # and values are strings. Example:  someVal = {  one = "foo",  two = "bar",  three = "baz"  } AReturns a list of association lists, i.e. a Lua table of tables. F In the outer table, the keys are integers and the values are tables, E and in the inner tables, the keys and values are strings. Example:  someVal = {  {  foo = "aaa",  bar = "bbb",  baz = "ccc"  },  {  foo = "ddd",  bar = "eee",  baz = "fff"  }  } CReturns an association list of association lists, i.e. a Lua table E of tables. In the outer table, the keys are strings and the values G are tables, and in the inner tables, the keys and values are strings.  Example:  someVal = {  something = {  foo = "aaa",  bar = "bbb",  baz = "ccc"  },  somethingElse = {  foo = "ddd",  bar = "eee",  baz = "fff"  }  } ~ ~ ~      !!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ hslua-0.3.3 Scripting.LuaScripting.Lua.ConfigFile LuaImport luaimport'luaimportargerror StackValuepushpeek valuetype GCCONTROL GCSETSTEPMUL GCSETPAUSEGCSTEPGCCOUNTBGCCOUNT GCCOLLECT GCRESTARTGCSTOPLTYPETTHREAD TUSERDATA TFUNCTIONTTABLETSTRINGTNUMBERTLIGHTUSERDATATBOOLEANTNILTNONE LuaNumber LuaInteger LuaCFunctionLuaStatemultretsettop createtableobjlenpopnewtable pushcclosure pushcfunctionltype isfunctionistableislightuserdataisnil isbooleanisthread registryindex environindex globalsindex upvalueindexatpanictostringtothread touserdatatypenamexmoveyield checkstacknewstatecloseconcatcallpcallcpcallgetfieldsetfield getglobal setglobalopenlibsdumpequalgcgetfenv getmetatablegettablegettop getupvalueinsert iscfunctionisnumberisstring isuserdatalessthanloadfile loadstring newthread newuserdatanext pushboolean pushintegerpushlightuserdatapushnil pushnumber pushstring pushthread pushvaluerawequalrawgetrawgetirawsetrawsetiremovereplaceresumesetfenv setmetatablesettable setupvaluestatus toboolean tocfunction tointegertonumber topointerregister newmetatableargerror getglobal2 newcfunction luaimport freecfunctioncallproccallfuncpushhsfunctionregisterhsfunctionConfigFileExceptionConfig openConfig closeConfiggetBool getStringgetInt getDoublegetListgetNestedLists getAssocListgetListOfAssocListsgetNestedAssocListshsmethod__call_addrhsmethod__gc_addr mkWrappermkStringReadermkStringWriterc_lua_neutralize_longjmp_addrc_lua_neutralize_longjmpc_luaL_argerrorc_luaL_newmetatablec_luaL_newstatec_luaL_openlibs c_lua_concat c_lua_next c_lua_errorc_lua_gc c_lua_status c_lua_resume c_lua_yield c_lua_dump c_lua_load c_lua_cpcall c_lua_pcall c_lua_call c_lua_setfenvc_lua_setmetatable c_lua_rawseti c_lua_rawsetc_lua_setfieldc_lua_settablec_lua_setupvaluec_lua_getupvalue c_lua_getfenvc_lua_getmetatablec_lua_newuserdatac_lua_createtable c_lua_rawgeti c_lua_rawgetc_lua_getfieldc_lua_gettablec_lua_pushthreadc_lua_pushlightuserdatac_lua_pushbooleanc_lua_pushcclosurec_lua_pushstringc_lua_pushlstringc_lua_pushintegerc_lua_pushnumber c_lua_pushnilc_lua_topointerc_lua_tothreadc_lua_touserdatac_lua_tocfunction c_lua_objlenc_lua_tolstringc_lua_tobooleanc_lua_tointegerc_lua_tonumberc_lua_lessthanc_lua_rawequal c_lua_equalc_lua_typename c_lua_typec_lua_isuserdatac_lua_iscfunctionc_lua_isstringc_lua_isnumber c_lua_xmovec_lua_checkstack c_lua_replace c_lua_insert c_lua_removec_lua_pushvalue c_lua_settop c_lua_gettop c_lua_atpanicc_lua_newthreadc_lua_newstate c_lua_close LuaCallFunc callfunc' LuaCallProc callproc' LuaWriter LuaReaderLuaAllocstrlenisnone isnoneornil maybepeek typenameindex hsmethod__gchsmethod__callgetTableforListgetListOfStrings getOuterListgetRowsgetRemainingRows getColumnsgetRemainingColumns