From 7db306602f26a4c5b380a8fd850bbf5cce6880e2 Mon Sep 17 00:00:00 2001 From: Abhinav Sarkar Date: Wed, 9 Dec 2015 17:11:57 +0530 Subject: [PATCH] Adds basic build setup. --- .gitignore | 1 + Setup.hs | 2 ++ app/Main.hs | 6 ++++++ ringo.cabal | 39 +++++++++++++++++++++++++++++++++++++++ src/Ringo.hs | 2 ++ stack.yaml | 29 +++++++++++++++++++++++++++++ test/Spec.hs | 2 ++ 7 files changed, 81 insertions(+) create mode 100644 Setup.hs create mode 100644 app/Main.hs create mode 100644 ringo.cabal create mode 100644 src/Ringo.hs create mode 100644 stack.yaml create mode 100644 test/Spec.hs diff --git a/.gitignore b/.gitignore index 3f4aa15..d7bd168 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ cabal-dev .hsenv .cabal-sandbox/ cabal.sandbox.config +.stack-work/ *.prof *.aux *.hp 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/app/Main.hs b/app/Main.hs new file mode 100644 index 0000000..83d03d8 --- /dev/null +++ b/app/Main.hs @@ -0,0 +1,6 @@ +module Main where + +import Ringo + +main :: IO () +main = undefined diff --git a/ringo.cabal b/ringo.cabal new file mode 100644 index 0000000..e6e898c --- /dev/null +++ b/ringo.cabal @@ -0,0 +1,39 @@ +name: ringo +version: 0.1.0.0 +synopsis: Tool to transform OLTP database schemas to OLAP database schemas automatically +description: Please see README.md +homepage: http://github.com/quintype/ringo#readme +license: MIT +license-file: LICENSE +author: Abhinav Sarkar +maintainer: abhinav@abhinavsarkar.net +copyright: 2015 Quintype Inc, Nilenso Software LLP +category: SQL +build-type: Simple +-- extra-source-files: +cabal-version: >=1.20 + +library + hs-source-dirs: src + exposed-modules: Ringo + build-depends: base >= 4.7 && < 5 + default-language: Haskell2010 + +executable ringo + hs-source-dirs: app + main-is: Main.hs + build-depends: base + , ringo + default-language: Haskell2010 + +test-suite ringo-test + type: exitcode-stdio-1.0 + hs-source-dirs: test + main-is: Spec.hs + build-depends: base + , ringo + default-language: Haskell2010 + +source-repository head + type: git + location: https://github.com/quintype/ringo diff --git a/src/Ringo.hs b/src/Ringo.hs new file mode 100644 index 0000000..7d51c97 --- /dev/null +++ b/src/Ringo.hs @@ -0,0 +1,2 @@ +module Ringo + () where diff --git a/stack.yaml b/stack.yaml new file mode 100644 index 0000000..4295578 --- /dev/null +++ b/stack.yaml @@ -0,0 +1,29 @@ +# For more information, see: https://github.com/commercialhaskell/stack/blob/master/doc/yaml_configuration.md + +# Specifies the GHC version and set of packages available (e.g., lts-3.5, nightly-2015-09-21, ghc-7.10.2) +resolver: lts-3.6 + +# Local packages, usually specified by relative directory name +packages: +- '.' + +# Packages to be pulled from upstream that are not in the resolver (e.g., acme-missiles-0.3) +extra-deps: [] + +# Override default flag values for local packages and extra-deps +flags: {} + +# Control whether we use the GHC we find on the path +# system-ghc: true + +# Require a specific version of stack, using version ranges +# require-stack-version: -any # Default +# require-stack-version: >= 0.1.4.0 + +# Override the architecture used by stack, especially useful on Windows +# arch: i386 +# arch: x86_64 + +# Extra directories used by stack for building +# extra-include-dirs: [/path/to/dir] +# extra-lib-dirs: [/path/to/dir] diff --git a/test/Spec.hs b/test/Spec.hs new file mode 100644 index 0000000..cd4753f --- /dev/null +++ b/test/Spec.hs @@ -0,0 +1,2 @@ +main :: IO () +main = putStrLn "Test suite not yet implemented"