diff --git a/Setup.hs b/ringo-app/Setup.hs similarity index 100% rename from Setup.hs rename to ringo-app/Setup.hs diff --git a/ringo-app/ringo-app.cabal b/ringo-app/ringo-app.cabal new file mode 100644 index 0000000..6e84ad6 --- /dev/null +++ b/ringo-app/ringo-app.cabal @@ -0,0 +1,41 @@ +name: ringo-app +version: 0.1.0.0 +synopsis: OLTP to OLAP schema transformer +description: Tool to transform OLTP schemas to OLAP star schemas automatically +homepage: http://github.com/abhin4v/ringo +license: MIT +license-file: ../LICENSE +author: Abhinav Sarkar +maintainer: abhinav@abhinavsarkar.net +copyright: 2015-2016 Quintype Inc, Nilenso Software LLP, Abhinav Sarkar +category: SQL +build-type: Simple +-- extra-source-files: +cabal-version: >=1.18 + +executable ringo + hs-source-dirs: src + other-modules: Ringo.ArgParser, + Ringo.InputParser, + Distribution.CurrentPackageDescription + main-is: Main.hs + build-depends: base >=4.7 && <5, + text >=1.2 && <1.3, + bytestring >=0.10 && <0.11, + containers >=0.5 && <0.6, + optparse-applicative >=0.11 && <0.13, + yaml >=0.8.11 && <0.9, + vector >=0.10 && <0.12, + directory >=1.2 && <1.3, + filepath >=1.3 && <1.5, + aeson >=0.8 && <0.12, + Cabal >=1.18 && <1.23, + template-haskell >=2.9 && <2.11, + ringo + ghc-options: -Wall -Werror -fwarn-incomplete-uni-patterns -fno-warn-unused-do-bind + -fno-warn-orphans -funbox-strict-fields -O2 + default-language: Haskell2010 + +source-repository head + type: git + location: https://github.com/abhin4v/ringo diff --git a/app/Distribution/CurrentPackageDescription.hs b/ringo-app/src/Distribution/CurrentPackageDescription.hs similarity index 100% rename from app/Distribution/CurrentPackageDescription.hs rename to ringo-app/src/Distribution/CurrentPackageDescription.hs diff --git a/app/Main.hs b/ringo-app/src/Main.hs similarity index 100% rename from app/Main.hs rename to ringo-app/src/Main.hs diff --git a/app/Ringo/ArgParser.hs b/ringo-app/src/Ringo/ArgParser.hs similarity index 100% rename from app/Ringo/ArgParser.hs rename to ringo-app/src/Ringo/ArgParser.hs diff --git a/app/Ringo/InputParser.hs b/ringo-app/src/Ringo/InputParser.hs similarity index 100% rename from app/Ringo/InputParser.hs rename to ringo-app/src/Ringo/InputParser.hs diff --git a/ringo/Setup.hs b/ringo/Setup.hs new file mode 100644 index 0000000..9a994af --- /dev/null +++ b/ringo/Setup.hs @@ -0,0 +1,2 @@ +import Distribution.Simple +main = defaultMain diff --git a/ringo.cabal b/ringo/ringo.cabal similarity index 63% rename from ringo.cabal rename to ringo/ringo.cabal index d37242c..c11fba2 100644 --- a/ringo.cabal +++ b/ringo/ringo.cabal @@ -4,7 +4,7 @@ synopsis: OLTP to OLAP schema transformer description: Tool to transform OLTP schemas to OLAP star schemas automatically homepage: http://github.com/abhin4v/ringo license: MIT -license-file: LICENSE +license-file: ../LICENSE author: Abhinav Sarkar maintainer: abhinav@abhinavsarkar.net copyright: 2015-2016 Quintype Inc, Nilenso Software LLP, Abhinav Sarkar @@ -38,29 +38,6 @@ library -fno-warn-orphans -funbox-strict-fields -O2 default-language: Haskell2010 -executable ringo - hs-source-dirs: app - other-modules: Ringo.ArgParser, - Ringo.InputParser, - Distribution.CurrentPackageDescription - main-is: Main.hs - build-depends: base >=4.7 && <5, - text >=1.2 && <1.3, - bytestring >=0.10 && <0.11, - containers >=0.5 && <0.6, - optparse-applicative >=0.11 && <0.13, - yaml >=0.8.11 && <0.9, - vector >=0.10 && <0.12, - directory >=1.2 && <1.3, - filepath >=1.3 && <1.5, - aeson >=0.8 && <0.12, - Cabal >=1.18 && <1.23, - template-haskell >=2.9 && <2.11, - ringo - ghc-options: -Wall -Werror -fwarn-incomplete-uni-patterns -fno-warn-unused-do-bind - -fno-warn-orphans -funbox-strict-fields -O2 - default-language: Haskell2010 - test-suite ringo-test type: exitcode-stdio-1.0 hs-source-dirs: test, src diff --git a/src/Ringo.hs b/ringo/src/Ringo.hs similarity index 100% rename from src/Ringo.hs rename to ringo/src/Ringo.hs diff --git a/src/Ringo/Extractor.hs b/ringo/src/Ringo/Extractor.hs similarity index 100% rename from src/Ringo/Extractor.hs rename to ringo/src/Ringo/Extractor.hs diff --git a/src/Ringo/Extractor/Internal.hs b/ringo/src/Ringo/Extractor/Internal.hs similarity index 100% rename from src/Ringo/Extractor/Internal.hs rename to ringo/src/Ringo/Extractor/Internal.hs diff --git a/src/Ringo/Generator.hs b/ringo/src/Ringo/Generator.hs similarity index 100% rename from src/Ringo/Generator.hs rename to ringo/src/Ringo/Generator.hs diff --git a/src/Ringo/Generator/Create.hs b/ringo/src/Ringo/Generator/Create.hs similarity index 100% rename from src/Ringo/Generator/Create.hs rename to ringo/src/Ringo/Generator/Create.hs diff --git a/src/Ringo/Generator/Internal.hs b/ringo/src/Ringo/Generator/Internal.hs similarity index 100% rename from src/Ringo/Generator/Internal.hs rename to ringo/src/Ringo/Generator/Internal.hs diff --git a/src/Ringo/Generator/Populate/Dimension.hs b/ringo/src/Ringo/Generator/Populate/Dimension.hs similarity index 100% rename from src/Ringo/Generator/Populate/Dimension.hs rename to ringo/src/Ringo/Generator/Populate/Dimension.hs diff --git a/src/Ringo/Generator/Populate/Fact.hs b/ringo/src/Ringo/Generator/Populate/Fact.hs similarity index 100% rename from src/Ringo/Generator/Populate/Fact.hs rename to ringo/src/Ringo/Generator/Populate/Fact.hs diff --git a/src/Ringo/Generator/Sql.hs b/ringo/src/Ringo/Generator/Sql.hs similarity index 100% rename from src/Ringo/Generator/Sql.hs rename to ringo/src/Ringo/Generator/Sql.hs diff --git a/src/Ringo/Types.hs b/ringo/src/Ringo/Types.hs similarity index 100% rename from src/Ringo/Types.hs rename to ringo/src/Ringo/Types.hs diff --git a/src/Ringo/Types/Internal.hs b/ringo/src/Ringo/Types/Internal.hs similarity index 100% rename from src/Ringo/Types/Internal.hs rename to ringo/src/Ringo/Types/Internal.hs diff --git a/src/Ringo/Utils.hs b/ringo/src/Ringo/Utils.hs similarity index 100% rename from src/Ringo/Utils.hs rename to ringo/src/Ringo/Utils.hs diff --git a/src/Ringo/Validator.hs b/ringo/src/Ringo/Validator.hs similarity index 100% rename from src/Ringo/Validator.hs rename to ringo/src/Ringo/Validator.hs diff --git a/test/doctests.hs b/ringo/test/doctests.hs similarity index 100% rename from test/doctests.hs rename to ringo/test/doctests.hs diff --git a/stack.yaml b/stack.yaml index 49cce08..e97787e 100644 --- a/stack.yaml +++ b/stack.yaml @@ -5,7 +5,8 @@ resolver: lts-5.1 # Local packages, usually specified by relative directory name packages: -- '.' +- 'ringo' +- 'ringo-app' # Packages to be pulled from upstream that are not in the resolver (e.g., acme-missiles-0.3) extra-deps: