File: simple-test.hs

package info (click to toggle)
haskell-hslua 0.3.8-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 664 kB
  • ctags: 1,932
  • sloc: ansic: 11,889; haskell: 843; makefile: 2
file content (8 lines) | stat: -rw-r--r-- 168 bytes parent folder | download
1
2
3
4
5
6
7
8
import qualified Scripting.Lua as Lua

main :: IO ()
main = do
     l <- Lua.newstate
     Lua.openlibs l
     Lua.callproc l "print" "Hello from Lua"
     Lua.close l