aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2017-03-26 15:31:08 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2017-03-26 15:31:08 +0300
commit136d7d82cdab45b50cafc7c3f53cac7805e3cb7c (patch)
treea99c6bba50ade7cbb55fac0b53608cb60f2c8725
parentrename directories (diff)
downloadwindows-env-136d7d82cdab45b50cafc7c3f53cac7805e3cb7c.tar.gz
windows-env-136d7d82cdab45b50cafc7c3f53cac7805e3cb7c.zip
put utility modules to bin/Utils/
-rw-r--r--bin/AddPath.hs4
-rw-r--r--bin/RemovePath.hs4
-rw-r--r--bin/SetEnv.hs4
-rw-r--r--bin/UnsetEnv.hs4
-rw-r--r--bin/Utils/Prompt.hs (renamed from bin/Prompt.hs)2
-rw-r--r--bin/Utils/PromptMessage.hs (renamed from bin/PromptMessage.hs)2
-rw-r--r--windows-env.cabal10
7 files changed, 15 insertions, 15 deletions
diff --git a/bin/AddPath.hs b/bin/AddPath.hs
index 73d86d0..683b82f 100644
--- a/bin/AddPath.hs
+++ b/bin/AddPath.hs
@@ -16,8 +16,8 @@ import Options.Applicative
import qualified WindowsEnv
-import Prompt
-import PromptMessage
+import Utils.Prompt
+import Utils.PromptMessage
data Options = Options
{ optName :: WindowsEnv.VarName
diff --git a/bin/RemovePath.hs b/bin/RemovePath.hs
index 7d0c104..6f2174b 100644
--- a/bin/RemovePath.hs
+++ b/bin/RemovePath.hs
@@ -16,8 +16,8 @@ import Options.Applicative
import qualified WindowsEnv
-import Prompt
-import PromptMessage
+import Utils.Prompt
+import Utils.PromptMessage
data Options = Options
{ optName :: WindowsEnv.VarName
diff --git a/bin/SetEnv.hs b/bin/SetEnv.hs
index 87d7812..5948d3e 100644
--- a/bin/SetEnv.hs
+++ b/bin/SetEnv.hs
@@ -15,8 +15,8 @@ import Options.Applicative
import qualified WindowsEnv
-import Prompt
-import PromptMessage
+import Utils.Prompt
+import Utils.PromptMessage
data Options = Options
{ optYes :: Bool
diff --git a/bin/UnsetEnv.hs b/bin/UnsetEnv.hs
index f60503b..98b52e3 100644
--- a/bin/UnsetEnv.hs
+++ b/bin/UnsetEnv.hs
@@ -15,8 +15,8 @@ import Options.Applicative
import qualified WindowsEnv
-import Prompt
-import PromptMessage
+import Utils.Prompt
+import Utils.PromptMessage
data Options = Options
{ optYes :: Bool
diff --git a/bin/Prompt.hs b/bin/Utils/Prompt.hs
index 404c582..51b3f0c 100644
--- a/bin/Prompt.hs
+++ b/bin/Utils/Prompt.hs
@@ -5,7 +5,7 @@
-- Stability : experimental
-- Portability : portable
-module Prompt
+module Utils.Prompt
( withPrompt
, withoutPrompt
) where
diff --git a/bin/PromptMessage.hs b/bin/Utils/PromptMessage.hs
index a3ff776..37fc1e6 100644
--- a/bin/PromptMessage.hs
+++ b/bin/Utils/PromptMessage.hs
@@ -5,7 +5,7 @@
-- Stability : experimental
-- Portability : Windows-only
-module PromptMessage
+module Utils.PromptMessage
( oldNewMessage
, newMessage
, wipeMessage
diff --git a/windows-env.cabal b/windows-env.cabal
index b7d4d89..876cb5a 100644
--- a/windows-env.cabal
+++ b/windows-env.cabal
@@ -36,7 +36,7 @@ library
executable addpath
hs-source-dirs: bin
main-is: AddPath.hs
- other-modules: Prompt, PromptMessage
+ other-modules: Utils.Prompt, Utils.PromptMessage
ghc-options: -Wall -Werror -threaded -rtsopts -with-rtsopts=-N
build-depends: base
, optparse-applicative
@@ -47,7 +47,7 @@ executable addpath
executable paths
hs-source-dirs: bin
main-is: ListPaths.hs
- other-modules: Prompt, PromptMessage
+ other-modules: Utils.Prompt, Utils.PromptMessage
ghc-options: -Wall -Werror -threaded -rtsopts -with-rtsopts=-N
build-depends: base, directory
, optparse-applicative
@@ -58,7 +58,7 @@ executable paths
executable delpath
hs-source-dirs: bin
main-is: RemovePath.hs
- other-modules: Prompt, PromptMessage
+ other-modules: Utils.Prompt, Utils.PromptMessage
ghc-options: -Wall -Werror -threaded -rtsopts -with-rtsopts=-N
build-depends: base
, optparse-applicative
@@ -69,7 +69,7 @@ executable delpath
executable setenv
hs-source-dirs: bin
main-is: SetEnv.hs
- other-modules: Prompt, PromptMessage
+ other-modules: Utils.Prompt, Utils.PromptMessage
ghc-options: -Wall -Werror -threaded -rtsopts -with-rtsopts=-N
build-depends: base
, optparse-applicative
@@ -80,7 +80,7 @@ executable setenv
executable delenv
hs-source-dirs: bin
main-is: UnsetEnv.hs
- other-modules: Prompt, PromptMessage
+ other-modules: Utils.Prompt, Utils.PromptMessage
ghc-options: -Wall -Werror -threaded -rtsopts -with-rtsopts=-N
build-depends: base
, optparse-applicative