Permalink
Browse files

use Lua for imports/exports

  • Loading branch information...
1 parent 5d8321e commit 2e0adfcd1dccd8c5e4054227e76d771bed9df8f3 @mikeplus64 committed Dec 28, 2012
Showing with 6 additions and 5 deletions.
  1. +1 −0 hslua.cabal
  2. +2 −2 src/Lua.hs
  3. +3 −3 src/Lua/ConfigFile.hs
View
1 hslua.cabal
@@ -24,6 +24,7 @@ library
if flag(system-lua)
extra-libraries: lua
else
+ include-dirs: lua
c-sources:
lapi.c
, lauxlib.c
View
4 src/Lua.hs
@@ -1,7 +1,7 @@
{-# LANGUAGE ForeignFunctionInterface, TypeSynonymInstances, FlexibleInstances, OverloadedStrings #-}
{-# OPTIONS_GHC -Wall -fno-warn-name-shadowing -fno-warn-unused-do-bind -fno-warn-unused-binds #-}
-- |
--- Module : Scripting.Lua
+-- Module : Lua
-- Copyright : (c) Gracjan Polak 2007
-- (c) Mike Ledger 2012
--
@@ -50,7 +50,7 @@
-- > Lua.callproc l "print" "Hello from Lua"
-- > Lua.close l
-module Scripting.Lua
+module Lua
(
-- * Basic Lua types
LuaState(..),
View
6 src/Lua/ConfigFile.hs
@@ -1,7 +1,7 @@
{-# LANGUAGE DeriveDataTypeable, OverloadedStrings #-}
-- |
--- Module : Scripting.Lua.ConfigFile
+-- Module : Lua.ConfigFile
-- Copyright : (c) Benjamin Geer 2011
--
-- License : BSD3-style
@@ -12,7 +12,7 @@
--
-- Reads configuration files written in Lua. See @http:\/\/www.lua.org\/@
-- for more details.
-module Scripting.Lua.ConfigFile
+module Lua.ConfigFile
(
Config,
openConfig,
@@ -29,7 +29,7 @@ module Scripting.Lua.ConfigFile
ConfigFileException
) where
-import qualified Scripting.Lua as Lua
+import qualified Lua
import System.IO (FilePath)
import Control.Exception (Exception, throwIO)
import Control.Monad (forM, forM_)

0 comments on commit 2e0adfc

Please sign in to comment.