cli: cabal dependency fixes

This commit is contained in:
Simon Michael 2011-07-18 23:24:54 +00:00
parent cfb26463b7
commit 883bc240c9

View File

@ -56,12 +56,13 @@ library
-- should be the same as below -- should be the same as below
build-depends: build-depends:
hledger-lib == 0.14.98 hledger-lib == 0.14.98
,HUnit
,base >= 3 && < 5 ,base >= 3 && < 5
,containers ,containers
,csv ,csv
,directory ,directory
,filepath ,filepath
,haskeline == 0.6.*
,HUnit
,mtl ,mtl
,old-locale ,old-locale
,old-time ,old-time
@ -72,22 +73,21 @@ library
,split == 0.1.* ,split == 0.1.*
,time ,time
,utf8-string >= 0.3.5 && < 0.4 ,utf8-string >= 0.3.5 && < 0.4
,haskeline == 0.6.*
-- should reuse the library above to avoid double compilation, but -- should depend on the above to avoid double compilation but this is
-- this is still too complicated as of 2011/6/1. Notes: -- still too complicated as of 2011/6/1 because:
-- - interferes with haddock generation, reportedly -- - breaks haddock, http://hackage.haskell.org/trac/hackage/ticket/656
-- - library and executable must have different hs-source-dirs -- - library and executable must have different hs-source-dirs
-- - how it works seems ghc version dependent
-- - the exe may need to list all the lib's dependencies -- - the exe may need to list all the lib's dependencies
-- - leksah is the package reported to have this working -- - how it works seems ghc version dependent
-- (http://hackage.haskell.org/packages/archive/leksah/0.10.0.4/leksah.cabal) -- leksah is reported to have this working, http://hackage.haskell.org/packages/archive/leksah/0.10.0.4/leksah.cabal
executable hledger executable hledger
main-is: hledger.hs main-is: hledger.hs
-- should be the same as above -- should be the same as above
other-modules: other-modules:
Hledger.Cli Hledger.Cli
Hledger.Cli.Main Hledger.Cli.Main
Hledger.Cli.Format
Hledger.Cli.Options Hledger.Cli.Options
Hledger.Cli.Tests Hledger.Cli.Tests
Hledger.Cli.Utils Hledger.Cli.Utils
@ -104,15 +104,14 @@ executable hledger
ghc-options: -threaded -W ghc-options: -threaded -W
-- should be the same as above -- should be the same as above
build-depends: build-depends:
base >= 3 && < 5 hledger-lib == 0.14.98
,hledger == 0.14.98
,hledger-lib == 0.14.98
,HUnit
,base >= 3 && < 5 ,base >= 3 && < 5
,containers ,containers
,csv ,csv
,directory ,directory
,filepath ,filepath
,haskeline == 0.6.*
,HUnit
,mtl ,mtl
,old-locale ,old-locale
,old-time ,old-time
@ -123,4 +122,3 @@ executable hledger
,split == 0.1.* ,split == 0.1.*
,time ,time
,utf8-string >= 0.3.5 && < 0.4 ,utf8-string >= 0.3.5 && < 0.4
,haskeline == 0.6.*