Breaks the library and exe as separate cabal projects.

pull/1/head
Abhinav Sarkar 2016-05-05 00:43:54 +05:30
parent a51dddba56
commit 9c683f3f67
No known key found for this signature in database
GPG Key ID: 7C9166A6F5465AD5
23 changed files with 46 additions and 25 deletions

41
ringo-app/ringo-app.cabal Normal file
View File

@ -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

2
ringo/Setup.hs Normal file
View File

@ -0,0 +1,2 @@
import Distribution.Simple
main = defaultMain

View File

@ -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

View File

@ -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: