aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-07-11 18:55:26 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-07-11 18:55:26 +0300
commitd53c986113cef78e2b504ecd5a4bba60999a55e1 (patch)
tree445b892abcfa272153dc39968838dbdc5d34d684
parentREADME update (diff)
downloadwindows-env-d53c986113cef78e2b504ecd5a4bba60999a55e1.tar.gz
windows-env-d53c986113cef78e2b504ecd5a4bba60999a55e1.zip
become a proper stack project
Diffstat (limited to '')
-rw-r--r--.gitignore1
-rw-r--r--Setup.hs2
-rw-r--r--apps/AddPath.hs (renamed from AddPath.hs)0
-rw-r--r--apps/FixNtSymbolPath.hs (renamed from FixNtSymbolPath.hs)0
-rw-r--r--apps/ListPath.hs (renamed from ListPath.hs)0
-rw-r--r--apps/RemovePath.hs (renamed from RemovePath.hs)0
-rw-r--r--apps/SetEnv.hs (renamed from SetEnv.hs)0
-rw-r--r--apps/UnsetEnv.hs (renamed from UnsetEnv.hs)0
-rw-r--r--src/EnvUtils.hs (renamed from EnvUtils.hs)0
-rw-r--r--src/RegUtils.hs (renamed from RegUtils.hs)0
-rw-r--r--src/Utils.hs (renamed from Utils.hs)0
-rw-r--r--stack.yaml66
-rw-r--r--wintmp.cabal72
13 files changed, 141 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..6fabf46
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/.stack-work/
diff --git a/Setup.hs b/Setup.hs
new file mode 100644
index 0000000..9a994af
--- /dev/null
+++ b/Setup.hs
@@ -0,0 +1,2 @@
+import Distribution.Simple
+main = defaultMain
diff --git a/AddPath.hs b/apps/AddPath.hs
index e17adc9..e17adc9 100644
--- a/AddPath.hs
+++ b/apps/AddPath.hs
diff --git a/FixNtSymbolPath.hs b/apps/FixNtSymbolPath.hs
index 404dc77..404dc77 100644
--- a/FixNtSymbolPath.hs
+++ b/apps/FixNtSymbolPath.hs
diff --git a/ListPath.hs b/apps/ListPath.hs
index ca72e87..ca72e87 100644
--- a/ListPath.hs
+++ b/apps/ListPath.hs
diff --git a/RemovePath.hs b/apps/RemovePath.hs
index 2e8fd01..2e8fd01 100644
--- a/RemovePath.hs
+++ b/apps/RemovePath.hs
diff --git a/SetEnv.hs b/apps/SetEnv.hs
index 30f5b1e..30f5b1e 100644
--- a/SetEnv.hs
+++ b/apps/SetEnv.hs
diff --git a/UnsetEnv.hs b/apps/UnsetEnv.hs
index cd43696..cd43696 100644
--- a/UnsetEnv.hs
+++ b/apps/UnsetEnv.hs
diff --git a/EnvUtils.hs b/src/EnvUtils.hs
index 7e9bc96..7e9bc96 100644
--- a/EnvUtils.hs
+++ b/src/EnvUtils.hs
diff --git a/RegUtils.hs b/src/RegUtils.hs
index eccb6ad..eccb6ad 100644
--- a/RegUtils.hs
+++ b/src/RegUtils.hs
diff --git a/Utils.hs b/src/Utils.hs
index 21ee67b..21ee67b 100644
--- a/Utils.hs
+++ b/src/Utils.hs
diff --git a/stack.yaml b/stack.yaml
new file mode 100644
index 0000000..c2691e2
--- /dev/null
+++ b/stack.yaml
@@ -0,0 +1,66 @@
+# This file was automatically generated by 'stack init'
+#
+# Some commonly used options have been documented as comments in this file.
+# For advanced use and comprehensive documentation of the format, please see:
+# http://docs.haskellstack.org/en/stable/yaml_configuration/
+
+# Resolver to choose a 'specific' stackage snapshot or a compiler version.
+# A snapshot resolver dictates the compiler version and the set of packages
+# to be used for project dependencies. For example:
+#
+# resolver: lts-3.5
+# resolver: nightly-2015-09-21
+# resolver: ghc-7.10.2
+# resolver: ghcjs-0.1.0_ghc-7.10.2
+# resolver:
+# name: custom-snapshot
+# location: "./custom-snapshot.yaml"
+resolver: lts-6.7
+
+# User packages to be built.
+# Various formats can be used as shown in the example below.
+#
+# packages:
+# - some-directory
+# - https://example.com/foo/bar/baz-0.0.2.tar.gz
+# - location:
+# git: https://github.com/commercialhaskell/stack.git
+# commit: e7b331f14bcffb8367cd58fbfc8b40ec7642100a
+# - location: https://github.com/commercialhaskell/stack/commit/e7b331f14bcffb8367cd58fbfc8b40ec7642100a
+# extra-dep: true
+# subdirs:
+# - auto-update
+# - wai
+#
+# A package marked 'extra-dep: true' will only be built if demanded by a
+# non-dependency (i.e. a user package), and its test suites and benchmarks
+# will not be run. This is useful for tweaking upstream packages.
+packages:
+- '.'
+# Dependency packages to be pulled from upstream that are not in the resolver
+# (e.g., acme-missiles-0.3)
+extra-deps: []
+
+# Override default flag values for local packages and extra-deps
+flags: {}
+
+# Extra package databases containing global packages
+extra-package-dbs: []
+
+# Control whether we use the GHC we find on the path
+# system-ghc: true
+#
+# Require a specific version of stack, using version ranges
+# require-stack-version: -any # Default
+# require-stack-version: ">=1.1"
+#
+# Override the architecture used by stack, especially useful on Windows
+# arch: i386
+# arch: x86_64
+#
+# Extra directories used by stack for building
+# extra-include-dirs: [/path/to/dir]
+# extra-lib-dirs: [/path/to/dir]
+#
+# Allow a newer minor version of GHC than the snapshot specifies
+# compiler-check: newer-minor \ No newline at end of file
diff --git a/wintmp.cabal b/wintmp.cabal
new file mode 100644
index 0000000..cbb4b2c
--- /dev/null
+++ b/wintmp.cabal
@@ -0,0 +1,72 @@
+name: wintmp
+version: 0.1.0.0
+synopsis: Windows "tmp" directory
+description: Please see README.md
+homepage: https://github.com/egor-tensin/wintmp
+license: MIT
+license-file: LICENSE.txt
+author: Egor Tensin
+maintainer: Egor.Tensin@gmail.com
+copyright: (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+category: System
+build-type: Simple
+-- extra-source-files:
+cabal-version: >=1.10
+
+library
+ hs-source-dirs: src
+ exposed-modules: EnvUtils, RegUtils, Utils
+ build-depends: base, split, Win32
+ default-language: Haskell2010
+
+executable add_path
+ hs-source-dirs: apps
+ main-is: AddPath.hs
+ ghc-options: -threaded -rtsopts -with-rtsopts=-N
+ build-depends: base
+ , wintmp
+ default-language: Haskell2010
+
+executable fix_nt_symbol_path
+ hs-source-dirs: apps
+ main-is: FixNtSymbolPath.hs
+ ghc-options: -threaded -rtsopts -with-rtsopts=-N
+ build-depends: base, directory, filepath
+ , wintmp
+ default-language: Haskell2010
+
+executable list_path
+ hs-source-dirs: apps
+ main-is: ListPath.hs
+ ghc-options: -threaded -rtsopts -with-rtsopts=-N
+ build-depends: base, directory
+ , wintmp
+ default-language: Haskell2010
+
+executable remove_path
+ hs-source-dirs: apps
+ main-is: RemovePath.hs
+ ghc-options: -threaded -rtsopts -with-rtsopts=-N
+ build-depends: base
+ , wintmp
+ default-language: Haskell2010
+
+executable set_env
+ hs-source-dirs: apps
+ main-is: SetEnv.hs
+ ghc-options: -threaded -rtsopts -with-rtsopts=-N
+ build-depends: base
+ , wintmp
+ default-language: Haskell2010
+
+executable unset_env
+ hs-source-dirs: apps
+ main-is: UnsetEnv.hs
+ ghc-options: -threaded -rtsopts -with-rtsopts=-N
+ build-depends: base
+ , wintmp
+ default-language: Haskell2010
+
+source-repository head
+ type: git
+ location: https://github.com/egor-tensin/wintmp