aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-08-20 19:04:24 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-08-20 19:04:24 +0300
commit943f237676d5d586f94d5428de98a2d1655ea893 (patch)
treee7ecc9cd3b5dde76c04385435bf3d189640c8e19
parentcode style (diff)
downloadwindows-env-943f237676d5d586f94d5428de98a2d1655ea893.tar.gz
windows-env-943f237676d5d586f94d5428de98a2d1655ea893.zip
fix license text + add Haddock headers
-rw-r--r--LICENSE.txt10
-rw-r--r--README.md3
-rw-r--r--apps/AddPath.hs10
-rw-r--r--apps/FixNtSymbolPath.hs10
-rw-r--r--apps/ListPath.hs10
-rw-r--r--apps/Prompt.hs10
-rw-r--r--apps/PromptMessage.hs10
-rw-r--r--apps/RemovePath.hs10
-rw-r--r--apps/SetEnv.hs10
-rw-r--r--apps/UnsetEnv.hs10
-rw-r--r--src/Windows/Environment.hs12
-rw-r--r--src/Windows/Registry.hs12
-rw-r--r--src/Windows/Utils.hs10
13 files changed, 65 insertions, 62 deletions
diff --git a/LICENSE.txt b/LICENSE.txt
index fbbdd68..62c44fd 100644
--- a/LICENSE.txt
+++ b/LICENSE.txt
@@ -1,4 +1,4 @@
-The MIT License (MIT)
+MIT License
Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
@@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/README.md b/README.md
index 04368cb..9028a40 100644
--- a/README.md
+++ b/README.md
@@ -116,8 +116,7 @@ Unset the variable `foo` for current user, skipping the confirmation prompt:
License
-------
-This project, including all of the files and their contents, is licensed under
-the terms of the MIT License.
+Distributed under the MIT License.
See [LICENSE.txt] for details.
[LICENSE.txt]: LICENSE.txt
diff --git a/apps/AddPath.hs b/apps/AddPath.hs
index 93ea212..5fba7ce 100644
--- a/apps/AddPath.hs
+++ b/apps/AddPath.hs
@@ -1,8 +1,8 @@
-{-
- - Copyright 2015 Egor Tensin <Egor.Tensin@gmail.com>
- - This file is licensed under the terms of the MIT License.
- - See LICENSE.txt for details.
--}
+-- |
+-- Copyright : (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+-- License : MIT
+-- Maintainer : Egor.Tensin@gmail.com
+-- Stability : experimental
module Main (main) where
diff --git a/apps/FixNtSymbolPath.hs b/apps/FixNtSymbolPath.hs
index a7c3b08..52c2349 100644
--- a/apps/FixNtSymbolPath.hs
+++ b/apps/FixNtSymbolPath.hs
@@ -1,8 +1,8 @@
-{-
- - Copyright 2015 Egor Tensin <Egor.Tensin@gmail.com>
- - This file is licensed under the terms of the MIT License.
- - See LICENSE.txt for details.
--}
+-- |
+-- Copyright : (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+-- License : MIT
+-- Maintainer : Egor.Tensin@gmail.com
+-- Stability : experimental
module Main (main) where
diff --git a/apps/ListPath.hs b/apps/ListPath.hs
index 6bb8a46..5aac18d 100644
--- a/apps/ListPath.hs
+++ b/apps/ListPath.hs
@@ -1,8 +1,8 @@
-{-
- - Copyright 2015 Egor Tensin <Egor.Tensin@gmail.com>
- - This file is licensed under the terms of the MIT License.
- - See LICENSE.txt for details.
--}
+-- |
+-- Copyright : (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+-- License : MIT
+-- Maintainer : Egor.Tensin@gmail.com
+-- Stability : experimental
module Main (main) where
diff --git a/apps/Prompt.hs b/apps/Prompt.hs
index 0beecc2..e8280de 100644
--- a/apps/Prompt.hs
+++ b/apps/Prompt.hs
@@ -1,8 +1,8 @@
-{-
- - Copyright 2015 Egor Tensin <Egor.Tensin@gmail.com>
- - This file is licensed under the terms of the MIT License.
- - See LICENSE.txt for details.
--}
+-- |
+-- Copyright : (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+-- License : MIT
+-- Maintainer : Egor.Tensin@gmail.com
+-- Stability : experimental
module Prompt
( withPrompt
diff --git a/apps/PromptMessage.hs b/apps/PromptMessage.hs
index 5ed7c4b..b02c0a2 100644
--- a/apps/PromptMessage.hs
+++ b/apps/PromptMessage.hs
@@ -1,8 +1,8 @@
-{-
- - Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
- - This file is licensed under the terms of the MIT License.
- - See LICENSE.txt for details.
--}
+-- |
+-- Copyright : (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
+-- License : MIT
+-- Maintainer : Egor.Tensin@gmail.com
+-- Stability : experimental
module PromptMessage
( engraveMessage
diff --git a/apps/RemovePath.hs b/apps/RemovePath.hs
index 5f5cd1d..1c8ee51 100644
--- a/apps/RemovePath.hs
+++ b/apps/RemovePath.hs
@@ -1,8 +1,8 @@
-{-
- - Copyright 2015 Egor Tensin <Egor.Tensin@gmail.com>
- - This file is licensed under the terms of the MIT License.
- - See LICENSE.txt for details.
--}
+-- |
+-- Copyright : (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+-- License : MIT
+-- Maintainer : Egor.Tensin@gmail.com
+-- Stability : experimental
module Main (main) where
diff --git a/apps/SetEnv.hs b/apps/SetEnv.hs
index debc62d..14c23ae 100644
--- a/apps/SetEnv.hs
+++ b/apps/SetEnv.hs
@@ -1,8 +1,8 @@
-{-
- - Copyright 2015 Egor Tensin <Egor.Tensin@gmail.com>
- - This file is licensed under the terms of the MIT License.
- - See LICENSE.txt for details.
--}
+-- |
+-- Copyright : (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+-- License : MIT
+-- Maintainer : Egor.Tensin@gmail.com
+-- Stability : experimental
module Main (main) where
diff --git a/apps/UnsetEnv.hs b/apps/UnsetEnv.hs
index 4fd6ccb..2ca0997 100644
--- a/apps/UnsetEnv.hs
+++ b/apps/UnsetEnv.hs
@@ -1,8 +1,8 @@
-{-
- - Copyright 2015 Egor Tensin <Egor.Tensin@gmail.com>
- - This file is licensed under the terms of the MIT License.
- - See LICENSE.txt for details.
--}
+-- |
+-- Copyright : (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+-- License : MIT
+-- Maintainer : Egor.Tensin@gmail.com
+-- Stability : experimental
module Main (main) where
diff --git a/src/Windows/Environment.hs b/src/Windows/Environment.hs
index 5c26eea..322b97b 100644
--- a/src/Windows/Environment.hs
+++ b/src/Windows/Environment.hs
@@ -1,8 +1,10 @@
-{-
- - Copyright 2015 Egor Tensin <Egor.Tensin@gmail.com>
- - This file is licensed under the terms of the MIT License.
- - See LICENSE.txt for details.
--}
+-- |
+-- Copyright : (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+-- License : MIT
+-- Maintainer : Egor.Tensin@gmail.com
+-- Stability : experimental
+--
+-- High-level functions for reading and writing Windows environment variables.
module Windows.Environment
( Profile(..)
diff --git a/src/Windows/Registry.hs b/src/Windows/Registry.hs
index 6661177..0ff55c5 100644
--- a/src/Windows/Registry.hs
+++ b/src/Windows/Registry.hs
@@ -1,8 +1,10 @@
-{-
- - Copyright 2015 Egor Tensin <Egor.Tensin@gmail.com>
- - This file is licensed under the terms of the MIT License.
- - See LICENSE.txt for details.
--}
+-- |
+-- Copyright : (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+-- License : MIT
+-- Maintainer : Egor.Tensin@gmail.com
+-- Stability : experimental
+--
+-- Low-level utility functions for reading and writing registry values.
module Windows.Registry
( KeyPath
diff --git a/src/Windows/Utils.hs b/src/Windows/Utils.hs
index aad241f..06e495c 100644
--- a/src/Windows/Utils.hs
+++ b/src/Windows/Utils.hs
@@ -1,8 +1,8 @@
-{-
- - Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
- - This file is licensed under the terms of the MIT License.
- - See LICENSE.txt for details.
--}
+-- |
+-- Copyright : (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
+-- License : MIT
+-- Maintainer : Egor.Tensin@gmail.com
+-- Stability : experimental
module Windows.Utils
( notifyEnvironmentUpdate