Skip to content
This repository was archived by the owner on Mar 22, 2021. It is now read-only.

Commit 5f6abc9

Browse files
committed
Fix "text" => "system" copy-paste errors
1 parent 7d36afa commit 5f6abc9

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/Foreign/Lua/Module/System.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import qualified System.Environment as Env
3030
import qualified System.Info as Info
3131
import qualified System.IO.Temp as Temp
3232

33-
-- | Pushes the @text@ module to the lua stack.
33+
-- | Pushes the @system@ module to the Lua stack.
3434
pushModule :: Lua NumResults
3535
pushModule = do
3636
Lua.newtable
@@ -51,8 +51,8 @@ pushModule = do
5151
addFunction "with_tmpdir" with_tmpdir
5252
return 1
5353

54-
-- | Add the text module under the given name to the table of preloaded
55-
-- packages.
54+
-- | Add the @system@ module under the given name to the table of
55+
-- preloaded packages.
5656
preloadModule :: String -> Lua ()
5757
preloadModule = flip addPackagePreloader pushModule
5858

test/system-module-tests.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--
2-
-- Tests for the hstext module
2+
-- Tests for the system module
33
--
44
local system = require 'system'
55

test/test-hslua-module-system.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ tests = testGroup "HsLua System module"
2828
[ testCase "system module can be pushed to the stack" $
2929
Lua.run (void pushModule)
3030

31-
, testCase "text module can be added to the preloader" . Lua.run $ do
31+
, testCase "system module can be added to the preloader" . Lua.run $ do
3232
Lua.openlibs
3333
preloadModule "system"
3434
assertEqual' "function not added to preloader" Lua.TypeFunction =<< do
3535
Lua.getglobal' "package.preload.system"
3636
Lua.ltype (-1)
3737

38-
, testCase "text module can be loaded as hstext" . Lua.run $ do
38+
, testCase "system module can be loaded as hssystem" . Lua.run $ do
3939
Lua.openlibs
40-
preloadModule "system"
40+
preloadModule "hssystem"
4141
assertEqual' "loading the module fails " Lua.OK =<<
42-
Lua.dostring "require 'system'"
42+
Lua.dostring "require 'hssystem'"
4343

4444
, testCase "Lua tests pass" . Lua.run $ do
4545
Lua.openlibs

0 commit comments

Comments
 (0)