diff --git a/Setup.hs b/Setup.hs new file mode 100644 index 000000000..9a994af67 --- /dev/null +++ b/Setup.hs @@ -0,0 +1,2 @@ +import Distribution.Simple +main = defaultMain diff --git a/app/Main.hs b/app/Main.hs new file mode 100644 index 000000000..de1c1ab35 --- /dev/null +++ b/app/Main.hs @@ -0,0 +1,6 @@ +module Main where + +import Lib + +main :: IO () +main = someFunc diff --git a/semantic-diff.cabal b/semantic-diff.cabal new file mode 100644 index 000000000..b0124a3ef --- /dev/null +++ b/semantic-diff.cabal @@ -0,0 +1,39 @@ +name: semantic-diff +version: 0.1.0.0 +synopsis: Initial project template from stack +description: Please see README.md +homepage: http://github.com/github/semantic-diff#readme +author: Rob Rix, Josh Vera +maintainer: robrix@github.com +copyright: 2015 GitHub +category: Web +build-type: Simple +-- extra-source-files: +cabal-version: >=1.10 + +library + hs-source-dirs: src + exposed-modules: Lib + build-depends: base >= 4.7 && < 5 + default-language: Haskell2010 + +executable semantic-diff-exe + hs-source-dirs: app + main-is: Main.hs + ghc-options: -threaded -rtsopts -with-rtsopts=-N + build-depends: base + , semantic-diff + default-language: Haskell2010 + +test-suite semantic-diff-test + type: exitcode-stdio-1.0 + hs-source-dirs: test + main-is: Spec.hs + build-depends: base + , semantic-diff + ghc-options: -threaded -rtsopts -with-rtsopts=-N + default-language: Haskell2010 + +source-repository head + type: git + location: https://github.com/githubuser/semantic-diff diff --git a/src/Lib.hs b/src/Lib.hs new file mode 100644 index 000000000..d36ff2714 --- /dev/null +++ b/src/Lib.hs @@ -0,0 +1,6 @@ +module Lib + ( someFunc + ) where + +someFunc :: IO () +someFunc = putStrLn "someFunc" diff --git a/test/Spec.hs b/test/Spec.hs new file mode 100644 index 000000000..cd4753fc9 --- /dev/null +++ b/test/Spec.hs @@ -0,0 +1,2 @@ +main :: IO () +main = putStrLn "Test suite not yet implemented"