
Hi all, I'm pleased to announce the first public release of Scripting.Lua. The package hslua-0.1 contains Haskell FFI bindings for a Lua interpreter along with some Haskell utility functions simplifying Haskell to Lua and Lua to Haskell calls. Full Lua interpreter is included in the package. Example import qualified Scripting.Lua as Lua main = do l <- Lua.newstate Lua.openlibs l Lua.callproc l "print" "Hello from Lua" Lua.close l More information http://home.agh.edu.pl/~gpolak/hslua The Lua language http://www.lua.org -- Gracjan

gracjanpolak:
Hi all,
I'm pleased to announce the first public release of Scripting.Lua.
The package hslua-0.1 contains Haskell FFI bindings for a Lua interpreter along with some Haskell utility functions simplifying Haskell to Lua and Lua to Haskell calls. Full Lua interpreter is included in the package.
Example
import qualified Scripting.Lua as Lua
main = do l <- Lua.newstate Lua.openlibs l Lua.callproc l "print" "Hello from Lua" Lua.close l
More information
http://home.agh.edu.pl/~gpolak/hslua
The Lua language
-- Gracjan
Great work! would you like to upload it to hackage.haskell.org too, so it will be archived for the ages? -- Don

You have just combined two of my favorite languages! Gracjan Polak wrote:
Hi all,
I'm pleased to announce the first public release of Scripting.Lua.
The package hslua-0.1 contains Haskell FFI bindings for a Lua interpreter along with some Haskell utility functions simplifying Haskell to Lua and Lua to Haskell calls. Full Lua interpreter is included in the package.
Example
import qualified Scripting.Lua as Lua
main = do l <- Lua.newstate Lua.openlibs l Lua.callproc l "print" "Hello from Lua" Lua.close l
More information
http://home.agh.edu.pl/~gpolak/hslua
The Lua language
-- Gracjan

On Tue, Jun 26, 2007 at 07:54:26AM -0500, Maxim Khailo wrote:
You have just combined two of my favorite languages!
Gracjan Polak wrote:
Hi all, I'm pleased to announce the first public release of Scripting.Lua.
I quote: this is a really nice news. I'll be trying to use it in project of mine very soon (I'm developing a sort of Ion3 like status bar, which is scriptable through Lua). Please follows Donald's suggestion and upload it on Hackage. All the best. Andrea

Andrea Rossato
I quote: this is a really nice news. I'll be trying to use it in project of mine very soon (I'm developing a sort of Ion3 like status bar, which is scriptable through Lua).
Exactly such a scenario I had in mind. Calling Lua from Haskell was easy, the hard part was to call Haskell from Lua. Give me a sign how it worked.
Please follows Donald's suggestion and upload it on Hackage.
Uploaded. -- Gracjan
participants (4)
-
Andrea Rossato
-
dons@cse.unsw.edu.au
-
Gracjan Polak
-
Maxim Khailo