Helpers for Haskell integration with Lua