packages feed

gyah-bin (empty) → 0.2.2.0

raw patch · 4 files changed

+103/−0 lines, 4 filesdep +GiveYouAHeaddep +basedep +extrasetup-changed

Dependencies added: GiveYouAHead, base, extra

Files

+ LICENSE view
@@ -0,0 +1,45 @@+<<<<<<< HEAD
+Copyright (c) 2015 Qinka
+
+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.
+=======
+The MIT License (MIT)
+
+Copyright (c) 2015 Qinka
+
+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.
+
+>>>>>>> 7ba60a111b4bd1f47b94c40341be38323ab84ddf
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple
+main = defaultMain
+ gyah-bin.cabal view
@@ -0,0 +1,26 @@+-- Initial gyah-bin.cabal generated by cabal init.  For further
+-- documentation, see http://haskell.org/cabal/users-guide/
+
+name:                gyah-bin
+version:             0.2.2.0
+synopsis:            A binary version of GiveYouAHead
+description:         GiveYouAHead  binary
+license:             MIT
+license-file:        LICENSE
+author:              Qinka
+maintainer:          qinka@live.com
+-- copyright:
+category:            GiveYouAHead
+build-type:          Simple
+-- extra-source-files:
+cabal-version:       >=1.10
+
+executable gyah
+  main-is:             Main.hs
+  -- other-modules:
+  -- other-extensions:
+  build-depends:       base >=4.8 && <4.9
+                     , GiveYouAHead >= 0.2.1
+                     , extra >= 1.0
+  hs-source-dirs:      src
+  default-language:    Haskell2010
+ src/Main.hs view
@@ -0,0 +1,30 @@+module Main where
+
+import GiveYouAHead
+import System.Environment
+import System.IO.Extra
+import Data.Version
+
+
+gyabbin'ver :: Version
+gyabbin'ver = Version { versionBranch = [0,2,2,0], versionTags =[] }
+gyabbinver = showVersion gyabbin'ver
+
+main :: IO()
+main = do
+        args<- getArgs
+        gyahMain args
+        let x = if length args >=1 then args !! 0 else "help"
+        if x == "help" then do
+                putStrLn $ unlines [
+                        "\tgyah-bin version " ++ gyabbinver,
+                        "\tgyah-bin 版本 " ++ gyabbinver,
+                        "",
+                        "\tHomepage https://github.com/Qinka/gyah-bin/",
+                        "\tBug report: https://github.com/Qinka/gyah-bin/issues",
+                        "\t主页  https://github.com/Qinka/gyah-bin/",
+                        "\tBUG报告  https://github.com/Qinka/gyah-bin/issues",
+                        ""
+                    ]
+            else putStr ""
+        return ()