I did that, the slash is a typo. I was looking at the Lua reference manual and it says that lua_loadfile uses lua_load[1] which outputs 0 if successful.
Appreciate the quick response.
-deech
[1] http://www.lua.org/manual/5.1/manual.html#lua_load
Change this:
into
succ <- Lua.loadfile l "/Haskell2Lua.lua"
Note that 0 at the beginning says there was an error loading a script.
succ <- Lua.loadfile l "Haskell2Lua.lua"
I should make it an exception I guess...
--
Gracjan
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe