lua-bytecode-0.1.0.0: lua-bytecode.cabal
-- Initial lua-bytecode.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/
name: lua-bytecode
version: 0.1.0.0
synopsis: Library for loading Lua bytecode.
description:
You can use this library to load LUA bytecode into its logical structure. Currently LUA 5.1 is supported.
.
> import System.Environment
> import Lua.Bytecode5_1.Chunk
> import Lua.Bytecode5_1.Types
> import Lua.Bytecode5_1.Header
> import qualified Data.ByteString as BS
> import Text.Show.Pretty
>
> main = do
> args <- getArgs
> b <- BS.readFile $ args !! 0
> let f = runLuaGet b :: Either String Function
> putStrLn $ ppShow f
license: BSD3
author: Jeff Shaw
maintainer: shawjef3@gmail.com
copyright: Copyright (c) Jeff Shaw 2013
category: LUA
build-type: Simple
cabal-version: >=1.8
Tested-With: GHC==7.6.3
library
extensions: NamedFieldPuns, RecordWildCards, FlexibleInstances, DisambiguateRecordFields
exposed-modules: Lua.Bytecode5_1.Types, Lua.Bytecode5_1.Header, Lua.Bytecode5_1.Chunk
-- other-modules:
build-depends: base ==4.*, vector >= 0.10, bytestring > 0.9, cereal >= 0.3, array, containers, numeric-extras, hashable