From 93ed0bc9493969cbfc290ae03e98b665ba3d9e94 Mon Sep 17 00:00:00 2001 From: Martin Zeller Date: Sun, 6 Mar 2016 12:59:03 +0100 Subject: [PATCH 1/2] Convert to Lua --- bower.json | 2 +- src/Data/Either/Unsafe.js | 8 -------- src/Data/Either/Unsafe.lua | 8 ++++++++ 3 files changed, 9 insertions(+), 9 deletions(-) delete mode 100644 src/Data/Either/Unsafe.js create mode 100644 src/Data/Either/Unsafe.lua diff --git a/bower.json b/bower.json index f6c1b56..bf7c755 100644 --- a/bower.json +++ b/bower.json @@ -8,7 +8,7 @@ "license": "MIT", "repository": { "type": "git", - "url": "git://github.com/purescript/purescript-either.git" + "url": "git://github.com/lua-purescript/purescript-either.git" }, "ignore": [ "**/.*", diff --git a/src/Data/Either/Unsafe.js b/src/Data/Either/Unsafe.js deleted file mode 100644 index a712b70..0000000 --- a/src/Data/Either/Unsafe.js +++ /dev/null @@ -1,8 +0,0 @@ -/* global exports */ -"use strict"; - -// module Data.Either.Unsafe - -exports.unsafeThrow = function (msg) { - throw new Error(msg); -}; diff --git a/src/Data/Either/Unsafe.lua b/src/Data/Either/Unsafe.lua new file mode 100644 index 0000000..65471fd --- /dev/null +++ b/src/Data/Either/Unsafe.lua @@ -0,0 +1,8 @@ +-- module Data.Either.Unsafe +local Unsafe = {} + +Unsafe.unsafeThrow = function (msg) + error(msg) +end + +return Unsafe From 147e8045abdf81df8793a2dcbcd9e67af593d08a Mon Sep 17 00:00:00 2001 From: Martin Zeller Date: Sat, 2 Apr 2016 16:15:17 +0200 Subject: [PATCH 2/2] Delete Unsafe.lua, leftover from automatic merge --- src/Data/Either/Unsafe.lua | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 src/Data/Either/Unsafe.lua diff --git a/src/Data/Either/Unsafe.lua b/src/Data/Either/Unsafe.lua deleted file mode 100644 index 65471fd..0000000 --- a/src/Data/Either/Unsafe.lua +++ /dev/null @@ -1,8 +0,0 @@ --- module Data.Either.Unsafe -local Unsafe = {} - -Unsafe.unsafeThrow = function (msg) - error(msg) -end - -return Unsafe