[Haskell-cafe] Re: Error Calling Lua Function

aditya siram aditya.siram at gmail.com
Sat Oct 23 09:35:00 EDT 2010


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

On Sat, Oct 23, 2010 at 2:49 AM, Gracjan Polak <gracjanpolak at gmail.com>wrote:

>
> Change this:
>
> succ <- Lua.loadfile l "/Haskell2Lua.lua"
>
> into
>
> succ <- Lua.loadfile l "Haskell2Lua.lua"
>
> Note that 0 at the beginning says there was an error loading a script.
>
> I should make it an exception I guess...
>
> --
> Gracjan
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20101023/1729ed27/attachment.html


More information about the Haskell-Cafe mailing list