super-user-spark (empty) → 0.2.0.0
raw patch · 6 files changed
+143/−0 lines, 6 filesdep +HTFdep +HUnitdep +aesonsetup-changed
Dependencies added: HTF, HUnit, aeson, aeson-pretty, base, binary, bytestring, directory, filepath, mtl, optparse-applicative, parsec, process, shelly, text, transformers, unix, zlib
Files
- LICENSE +22/−0
- README.md +18/−0
- Setup.hs +2/−0
- src/Main.hs +26/−0
- super-user-spark.cabal +66/−0
- test/TestMain.hs +9/−0
+ LICENSE view
@@ -0,0 +1,22 @@+The MIT License (MIT)++Copyright (c) 2015 Tom Sydney Kerckhove++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+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 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.+
+ README.md view
@@ -0,0 +1,18 @@+# Super User Spark++A safe way to never worry about your beautifully configured system again++## Documentation+Most of the documentation is in the `doc` directory.++- [Installation](https://github.com/NorfairKing/super-user-spark/blob/master/doc/installation.md)+- [Getting Started](https://github.com/NorfairKing/super-user-spark/blob/master/doc/getting-started.md)+- [Usage](https://github.com/NorfairKing/super-user-spark/blob/master/doc/usage.md)+- [Design](https://github.com/NorfairKing/super-user-spark/blob/master/doc/pillars.md)+- [Language Specifications](https://github.com/NorfairKing/super-user-spark/blob/master/doc/language.md)+- [FAQ](https://github.com/NorfairKing/super-user-spark/blob/master/doc/faq.md)++## SUS Depot Examples+If you would like to have your name on this list, just send a pull request.++- [NorfairKing](https://github.com/NorfairKing/sus-depot)
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ src/Main.hs view
@@ -0,0 +1,26 @@+module Main where++import System.Exit (die)++import Arguments+import Dispatch+import Types++main :: IO ()+main = do+ (di, config) <- getInstructions++ er <- runSparker config $ dispatch di+ case er of+ Left err -> die $ showError err+ Right _ -> return ()++showError :: SparkError -> String+showError (ParseError err) = show err+showError (CompileError err) = err+showError (UnpredictedError err) = "Panic: " ++ err+showError (DeployError err) =+ case err of+ PreDeployError ss -> unlines ss+ DuringDeployError ss -> unlines ss+ PostDeployError ss -> unlines ss
+ super-user-spark.cabal view
@@ -0,0 +1,66 @@+name: super-user-spark+version: 0.2.0.0+license: MIT+license-file: LICENSE+description: Configure your dotfile deployment with a DSL.+synopsis: Configure your dotfile deployment with a DSL.+author: Tom Sydney Kerckhove+maintainer: syd.kerckhove@gmail.com+category: System+build-type: Simple+extra-source-files: README.md+cabal-version: >=1.10+++executable spark+ main-is: Main.hs+ hs-source-dirs: src+ ghc-options: -Wall+ -fwarn-unused-imports+ -fwarn-incomplete-patterns+ -fno-warn-unused-do-bind+ -fno-warn-name-shadowing+ build-depends: base >= 4.6 && < 4.9+ , HTF >= 0.13 && < 0.14+ , aeson >= 0.8 && < 0.9+ , aeson-pretty >= 0.7 && < 0.8+ , binary >= 0.7 && < 0.8+ , bytestring >= 0.10 && < 0.11+ , directory >= 1.2 && < 1.3+ , filepath >= 1.4 && < 1.5+ , mtl >= 2.2 && < 2.3+ , optparse-applicative >= 0.11 && < 0.12+ , parsec >= 3.1.9 && < 3.2+ , process >= 1.2 && < 1.3+ , shelly >= 1.6 && < 1.7+ , text >= 1.2 && < 1.3+ , transformers >= 0.4 && < 0.5+ , unix >= 2.7 && < 2.8+ , zlib >= 0.6 && < 0.7+ default-language: Haskell2010+ ++test-suite spark-tests+ type: exitcode-stdio-1.0+ main-is: TestMain.hs+ hs-source-dirs: src, test+ build-depends: base >= 4.6 && < 4.9+ , HTF >= 0.13 && < 0.14+ , HUnit >= 1.2 && < 1.3+ , aeson >= 0.8 && < 0.9+ , aeson-pretty >= 0.7 && < 0.8+ , binary >= 0.7 && < 0.8+ , bytestring >= 0.10 && < 0.11+ , directory >= 1.2 && < 1.3+ , filepath >= 1.4 && < 1.5+ , mtl >= 2.2 && < 2.3+ , optparse-applicative >= 0.11 && < 0.12+ , parsec >= 3.1 && < 3.2+ , process >= 1.2 && < 1.3+ , shelly >= 1.6 && < 1.7+ , text >= 1.2 && < 1.3+ , transformers >= 0.4 && < 0.5+ , unix >= 2.7 && < 2.8+ , zlib >= 0.6 && < 0.7+ default-language: Haskell2010+
+ test/TestMain.hs view
@@ -0,0 +1,9 @@+{-# OPTIONS_GHC -F -pgmF htfpp #-}+module Main where++import {-@ HTF_TESTS @-} Parser.Test+import {-@ HTF_TESTS @-} Compiler.Test+import Test.Framework+import Test.Framework.BlackBoxTest++main = htfMain htf_importedTests