aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-01-25 05:58:46 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-01-25 05:58:46 +0300
commitd3e2eeb7892e132120174de5567d932d83c97218 (patch)
treede2fa96af0f64764e7abf7b9482078e19502bae9
parentadd Portability to module descriptions (diff)
downloadwindows-env-d3e2eeb7892e132120174de5567d932d83c97218.tar.gz
windows-env-d3e2eeb7892e132120174de5567d932d83c97218.zip
rename namespace 'Windows' to 'WindowsEnv'
Diffstat (limited to '')
-rw-r--r--apps/AddPath.hs2
-rw-r--r--apps/ListPaths.hs2
-rw-r--r--apps/PromptMessage.hs2
-rw-r--r--apps/RemovePath.hs2
-rw-r--r--apps/SetEnv.hs2
-rw-r--r--apps/UnsetEnv.hs2
-rw-r--r--src/WindowsEnv/Environment.hs (renamed from src/Windows/Environment.hs)6
-rw-r--r--src/WindowsEnv/Registry.hs (renamed from src/Windows/Registry.hs)2
-rw-r--r--src/WindowsEnv/Utils.hs (renamed from src/Windows/Utils.hs)2
-rw-r--r--windows-env.cabal4
10 files changed, 13 insertions, 13 deletions
diff --git a/apps/AddPath.hs b/apps/AddPath.hs
index 0e4356b..0439873 100644
--- a/apps/AddPath.hs
+++ b/apps/AddPath.hs
@@ -14,7 +14,7 @@ import System.IO.Error (ioError, isDoesNotExistError)
import Options.Applicative
-import qualified Windows.Environment as Env
+import qualified WindowsEnv.Environment as Env
import Prompt
import PromptMessage
diff --git a/apps/ListPaths.hs b/apps/ListPaths.hs
index 79f82c2..543599e 100644
--- a/apps/ListPaths.hs
+++ b/apps/ListPaths.hs
@@ -17,7 +17,7 @@ import System.IO.Error (ioError)
import Options.Applicative
-import qualified Windows.Environment as Env
+import qualified WindowsEnv.Environment as Env
data WhichPaths = All | ExistingOnly | MissingOnly
deriving (Eq, Show)
diff --git a/apps/PromptMessage.hs b/apps/PromptMessage.hs
index db83443..f5afd71 100644
--- a/apps/PromptMessage.hs
+++ b/apps/PromptMessage.hs
@@ -13,7 +13,7 @@ module PromptMessage
import Text.Printf (printf)
-import qualified Windows.Environment as Env
+import qualified WindowsEnv.Environment as Env
oldNewMessage :: Env.Profile -> Env.VarName -> Env.VarValue -> Env.VarValue -> String
oldNewMessage profile name oldValue newValue =
diff --git a/apps/RemovePath.hs b/apps/RemovePath.hs
index c06df55..446b837 100644
--- a/apps/RemovePath.hs
+++ b/apps/RemovePath.hs
@@ -14,7 +14,7 @@ import System.IO.Error (ioError, isDoesNotExistError)
import Options.Applicative
-import qualified Windows.Environment as Env
+import qualified WindowsEnv.Environment as Env
import Prompt
import PromptMessage
diff --git a/apps/SetEnv.hs b/apps/SetEnv.hs
index 83aa0b4..6cf5d29 100644
--- a/apps/SetEnv.hs
+++ b/apps/SetEnv.hs
@@ -13,7 +13,7 @@ import System.IO.Error (ioError)
import Options.Applicative
-import qualified Windows.Environment as Env
+import qualified WindowsEnv.Environment as Env
import Prompt
import PromptMessage
diff --git a/apps/UnsetEnv.hs b/apps/UnsetEnv.hs
index c92de03..65f0c91 100644
--- a/apps/UnsetEnv.hs
+++ b/apps/UnsetEnv.hs
@@ -13,7 +13,7 @@ import System.IO.Error (ioError)
import Options.Applicative
-import qualified Windows.Environment as Env
+import qualified WindowsEnv.Environment as Env
import Prompt
import PromptMessage
diff --git a/src/Windows/Environment.hs b/src/WindowsEnv/Environment.hs
index b975be4..8bfb449 100644
--- a/src/Windows/Environment.hs
+++ b/src/WindowsEnv/Environment.hs
@@ -8,7 +8,7 @@
--
-- High-level functions for reading and writing Windows environment variables.
-module Windows.Environment
+module WindowsEnv.Environment
( Profile(..)
, profileKeyPath
@@ -28,8 +28,8 @@ import Control.Monad.Trans.Except (ExceptT(..))
import Data.List (intercalate)
import Data.List.Split (splitOn)
-import qualified Windows.Registry as Registry
-import Windows.Utils (notifyEnvironmentUpdate)
+import qualified WindowsEnv.Registry as Registry
+import WindowsEnv.Utils (notifyEnvironmentUpdate)
data Profile = CurrentUser
| AllUsers
diff --git a/src/Windows/Registry.hs b/src/WindowsEnv/Registry.hs
index e7daaab..da889d4 100644
--- a/src/Windows/Registry.hs
+++ b/src/WindowsEnv/Registry.hs
@@ -8,7 +8,7 @@
--
-- Lower-level functions for reading and writing registry values.
-module Windows.Registry
+module WindowsEnv.Registry
( IsKeyPath(..)
, RootKey(..)
, KeyPath(..)
diff --git a/src/Windows/Utils.hs b/src/WindowsEnv/Utils.hs
index 414ec50..c852229 100644
--- a/src/Windows/Utils.hs
+++ b/src/WindowsEnv/Utils.hs
@@ -5,7 +5,7 @@
-- Stability : experimental
-- Portability : Windows-only
-module Windows.Utils
+module WindowsEnv.Utils
( notifyEnvironmentUpdate
) where
diff --git a/windows-env.cabal b/windows-env.cabal
index 7654064..d452305 100644
--- a/windows-env.cabal
+++ b/windows-env.cabal
@@ -15,8 +15,8 @@ cabal-version: >=1.10
library
hs-source-dirs: src
- exposed-modules: Windows.Environment
- other-modules: Windows.Registry, Windows.Utils
+ exposed-modules: WindowsEnv.Environment
+ other-modules: WindowsEnv.Registry, WindowsEnv.Utils
ghc-options: -Wall -Werror
build-depends: base
, bytestring