GGg (empty) → 0.1.0.0
raw patch · 4 files changed
+62/−0 lines, 4 filesdep +basedep +bimapsetup-changed
Dependencies added: base, bimap
Files
- GGg.cabal +27/−0
- LICENSE +20/−0
- Setup.hs +2/−0
- src/Main.hs +13/−0
+ GGg.cabal view
@@ -0,0 +1,27 @@+-- Initial GGg.cabal generated by cabal init. For further documentation, +-- see http://haskell.org/cabal/users-guide/++name: GGg+version: 0.1.0.0+synopsis: GGg cipher+-- description: +homepage: https://github.com/xnil/GGg+license: MIT+license-file: LICENSE+author: Carter Hinsley+maintainer: carterhinsley@gmail.com+-- copyright: +category: Text+build-type: Simple+-- extra-source-files: +cabal-version: >=1.10++executable GGg+ main-is: Main.hs+ -- other-modules: + -- other-extensions: + build-depends:+ base >=4.7 && <4.8,+ bimap == 0.2.4+ hs-source-dirs: src+ default-language: Haskell2010
+ LICENSE view
@@ -0,0 +1,20 @@+Copyright (c) 2015 Carter Hinsley++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.
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ src/Main.hs view
@@ -0,0 +1,13 @@+module Main where++import Conversions+import System.Environment++main :: IO ()+main = parseArgs =<< getArgs++parseArgs :: [String] -> IO ()+parseArgs ["-g"] = putStr . asciiTextToG =<< getContents+parseArgs ["-a"] = putStr . gTextToAscii =<< getContents+parseArgs [] = putStrLn "No argument provided. Try `-g' or `-a'."+parseArgs args = putStrLn "Invalid arguments."