Hi all,<br>I&#39;m having some issues calling Lua functions from Haskell. I have the following in &quot;Haskell2Lua.lua&quot;:<br>function hello ()<br>   return &quot;hello world&quot;<br>end<br><br>And my Haskell file &quot;Haskell2Lua.hs&quot; looks like this:<br>
import qualified Scripting.Lua as Lua                                                                                                                                     <br>main = do                                                                                                                                                                 <br>
    l &lt;- Lua.newstate                                                                                                                                                     <br>    Lua.openlibs l                                                                                                                                                        <br>
    succ &lt;- Lua.loadfile l &quot;/Haskell2Lua.lua&quot;                                                                                      <br>    print succ                                                                                                                                          <br>
    Lua.callproc l &quot;hello&quot; &quot;&quot;                                                                                                                                             <br>    Lua.close l <br><br>When I compile and run this file I get:<br>
0<br>Haskell2Lua: user error (attempt to call a nil value)<br><br>I have tried some variations on calling the function including:<br>Lua.callproc l &quot;hello&quot;<br>Lua.callfunc l &quot;hello&quot;<br>Lua.callfunc l &quot;hello&quot; &quot;&quot;<br>
<br>I know the Lua bridge is working because the following works:<br><pre>Lua.callproc l &quot;print&quot; &quot;Hello from Lua&quot;<br><br></pre>Any help is appreciated!<br>-deech<br>