From b09dd99e263f247e1b9a942457009a4887aaef8a Mon Sep 17 00:00:00 2001 From: "Yann Esposito (Yogsototh)" Date: Sat, 19 Apr 2014 08:51:34 +0200 Subject: [PATCH] fixed all cabal + dependecy bugs issues --- holy-project.cabal | 14 +++++++++----- src/HolyProject.hs | 4 +--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/holy-project.cabal b/holy-project.cabal index 176b22b..45992e5 100644 --- a/holy-project.cabal +++ b/holy-project.cabal @@ -44,10 +44,10 @@ executable holy-project -- other-modules: -- other-extensions: build-depends: base - , ansi-terminal + , ansi-terminal >= 0.6.1.1 , split , hastache - , bytestring + , bytestring >= 0.10.4.0 , syb , directory , time @@ -74,7 +74,7 @@ library -- other-modules: -- other-extensions: build-depends: base - , ansi-terminal + , ansi-terminal >= 0.6.1.1 , split , hastache , bytestring @@ -100,7 +100,9 @@ executable test-holy-project other-modules: HolyProject.GithubAPI.Test , HolyProject.StringUtils.Test default-language: Haskell2010 - build-depends: base + build-depends: base >=4.6 + , Cabal >= 1.18.0 + , bytestring >= 0.10.4.0 , holy-project , HUnit , QuickCheck @@ -116,7 +118,9 @@ test-suite Tests main-is: Test.hs Type: exitcode-stdio-1.0 default-language: Haskell2010 - build-depends: base + build-depends: base >= 4.6 + , Cabal >= 1.18.0 + , bytestring >= 0.10.4.0 , holy-project , HUnit , QuickCheck diff --git a/src/HolyProject.hs b/src/HolyProject.hs index a4c5e97..27fb14c 100644 --- a/src/HolyProject.hs +++ b/src/HolyProject.hs @@ -22,13 +22,11 @@ import qualified Data.Text.Lazy.IO as TIO import Text.Hastache import Text.Hastache.Context -- File and directory Handling -import qualified Data.ByteString as BS -import qualified Data.ByteString.Lazy.Char8 as LZ import System.Directory import System.FilePath.Posix (takeDirectory,()) import System.Posix.Files (setFileMode) -- Execute external commands -import System.Cmd (system) +import System.Process (system) -- Random error message :) import System.Random -- Fork