aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cli/Main.hs2
-rw-r--r--nodejs/Main.hs4
-rw-r--r--src/Web/ZeroBin.hs (renamed from src/ZeroBin.hs)6
-rw-r--r--src/Web/ZeroBin/SJCL.hs (renamed from src/ZeroBin/SJCL.hs)4
-rw-r--r--src/Web/ZeroBin/Utils.hs (renamed from src/ZeroBin/Utils.hs)2
-rw-r--r--zerobin.cabal8
6 files changed, 13 insertions, 13 deletions
diff --git a/cli/Main.hs b/cli/Main.hs
index 81dda44..5d6b445 100644
--- a/cli/Main.hs
+++ b/cli/Main.hs
@@ -8,7 +8,7 @@ import System.Environment (getArgs)
import System.Exit (exitFailure)
import System.IO (stderr, hPutStrLn)
import Text.RawString.QQ (r)
-import ZeroBin (share, Expiration(..))
+import Web.ZeroBin (share, Expiration(..))
import qualified Data.ByteString as BS
import qualified Data.ByteString.Char8 as C
import qualified System.Console.Docopt.NoTH as O
diff --git a/nodejs/Main.hs b/nodejs/Main.hs
index e1acb5d..3cf74d9 100644
--- a/nodejs/Main.hs
+++ b/nodejs/Main.hs
@@ -4,8 +4,8 @@ module Main where
import System.Environment (getArgs)
import System.Process (callProcess)
-import ZeroBin.SJCL (encrypt)
-import ZeroBin.Utils (makePassword)
+import Web.ZeroBin.SJCL (encrypt)
+import Web.ZeroBin.Utils (makePassword)
import qualified Data.Aeson as JSON
import qualified Data.ByteString as BS
import qualified Data.ByteString.Char8 as C
diff --git a/src/ZeroBin.hs b/src/Web/ZeroBin.hs
index 5d8abd8..24e7115 100644
--- a/src/ZeroBin.hs
+++ b/src/Web/ZeroBin.hs
@@ -1,6 +1,6 @@
{-# LANGUAGE DeriveGeneric #-}
-module ZeroBin (
+module Web.ZeroBin (
Expiration(..),
share
) where
@@ -9,8 +9,8 @@ import Data.ByteString (ByteString)
import Data.ByteString.Base64 (encode)
import Data.Maybe (fromJust)
import GHC.Generics (Generic)
-import ZeroBin.SJCL (encrypt, Content)
-import ZeroBin.Utils (makePassword)
+import Web.ZeroBin.SJCL (encrypt, Content)
+import Web.ZeroBin.Utils (makePassword)
import qualified Data.Aeson as JSON
import qualified Data.ByteString.Char8 as C
import qualified Data.ByteString.Lazy as L
diff --git a/src/ZeroBin/SJCL.hs b/src/Web/ZeroBin/SJCL.hs
index fc3aa1b..66f8e29 100644
--- a/src/ZeroBin/SJCL.hs
+++ b/src/Web/ZeroBin/SJCL.hs
@@ -1,6 +1,6 @@
{-# LANGUAGE DeriveGeneric #-}
-module ZeroBin.SJCL (
+module Web.ZeroBin.SJCL (
Content(..),
encrypt
) where
@@ -16,7 +16,7 @@ import Data.ByteString (ByteString)
import Data.Maybe (fromJust)
import Data.Word (Word8)
import GHC.Generics (Generic)
-import ZeroBin.Utils (toWeb)
+import Web.ZeroBin.Utils (toWeb)
import qualified Crypto.KDF.PBKDF2 as PBKDF2
import qualified Data.Aeson as JSON
import qualified Data.ByteArray as BA
diff --git a/src/ZeroBin/Utils.hs b/src/Web/ZeroBin/Utils.hs
index 34871d2..915d8ad 100644
--- a/src/ZeroBin/Utils.hs
+++ b/src/Web/ZeroBin/Utils.hs
@@ -1,4 +1,4 @@
-module ZeroBin.Utils (
+module Web.ZeroBin.Utils (
toWeb
, makePassword
) where
diff --git a/zerobin.cabal b/zerobin.cabal
index 405b581..268df7d 100644
--- a/zerobin.cabal
+++ b/zerobin.cabal
@@ -1,5 +1,5 @@
name: zerobin
-version: 1.1.1
+version: 1.2.0
synopsis: Post to 0bin services
description: Post encrypted content to 0bin sites
like http://0bin.net or https://paste.ec
@@ -39,9 +39,9 @@ library
http-conduit >= 2.1.8,
memory >= 0.10
exposed-modules:
- ZeroBin,
- ZeroBin.SJCL,
- ZeroBin.Utils
+ Web.ZeroBin,
+ Web.ZeroBin.SJCL,
+ Web.ZeroBin.Utils
executable zerobin
default-language: Haskell2010