From c0f0451bd04ea339fc96e9d83f9e67422336e1da Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Thu, 9 Apr 2015 17:10:55 +0200 Subject: [PATCH] Make the package compatible with cabal-install --- Setup.hs | 2 ++ breve.cabal | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 Setup.hs diff --git a/Setup.hs b/Setup.hs new file mode 100644 index 0000000..bf68901 --- /dev/null +++ b/Setup.hs @@ -0,0 +1,2 @@ +import Distribution.Simple +main = defaultMain \ No newline at end of file diff --git a/breve.cabal b/breve.cabal index 9ea89ad..4296f65 100644 --- a/breve.cabal +++ b/breve.cabal @@ -1,5 +1,5 @@ name: breve -version: 0.0.1.0 +version: 0.0.2.0 synopsis: a url shortener description: @@ -15,6 +15,7 @@ copyright: (C) Michele Guerini Rocco 2015 category: Web build-type: Simple extra-source-files: README.md, LICENSE +data-files: layouts/*.css, layouts/*.html, views/*.html cabal-version: >=1.10 source-repository head @@ -23,8 +24,12 @@ source-repository head executable breve main-is: Main.hs + hs-source-dirs: src default-language: Haskell2010 - build-depends: base, simple >= 0.8.0, + other-modules: Application, Breve.Common, + Breve.Generator, Breve.UrlTable + other-extensions: OverloadedStrings + build-depends: base ==4.*, simple >= 0.8.0, wai ==2.*, wai-extra ==2.*, warp ==2.1.*, aeson ==0.8.*, bytestring ==0.10.*, transformers ==0.3.*, mtl ==2.1.*,