diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..43369d5 --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +Ward is distributed under the terms of the MIT License, reproduced below. + +Copyright © 2016 Jon Purdy + +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. 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/Ward.cabal b/Ward.cabal new file mode 100644 index 0000000..a5e4ecf --- /dev/null +++ b/Ward.cabal @@ -0,0 +1,24 @@ +name: Ward +version: 0.1.0.0 +synopsis: Static permission checker for C programs. +description: See README.md +homepage: https://github.com/evincarofautumn/ward#readme +license: MIT +license-file: LICENSE +author: Jon Purdy +maintainer: evincarofautumn@gmail.com +copyright: 2016 Jon Purdy +category: Language +build-type: Simple +cabal-version: >=1.10 + +executable ward + hs-source-dirs: src + main-is: Main.hs + ghc-options: -threaded -rtsopts -with-rtsopts=-N + build-depends: base + default-language: Haskell2010 + +source-repository head + type: git + location: https://github.com/evincarofautumn/ward diff --git a/src/Main.hs b/src/Main.hs new file mode 100644 index 0000000..d2e2a65 --- /dev/null +++ b/src/Main.hs @@ -0,0 +1,4 @@ +module Main where + +main :: IO () +main = putStrLn "Hello, world!" diff --git a/stack.yaml b/stack.yaml new file mode 100644 index 0000000..b5ae7b6 --- /dev/null +++ b/stack.yaml @@ -0,0 +1,6 @@ +resolver: lts-7.3 +packages: +- '.' +extra-deps: [] +flags: {} +extra-package-dbs: [] diff --git a/test/Main.hs b/test/Main.hs new file mode 100644 index 0000000..562ce59 --- /dev/null +++ b/test/Main.hs @@ -0,0 +1,9 @@ +import Test.HUnit +import Test.Hspec + +main :: IO () +main = hspec spec + +spec :: Spec +spec = do + putStrLn "Test suite not yet implemented"