From cfb26463b787e27ccb4d232e6281b46a2e48ae4a Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 1 Jun 2011 18:23:46 +0000 Subject: [PATCH] hledger.cabal: note self-depending issues and revert to the old way of building --- hledger/hledger.cabal | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/hledger/hledger.cabal b/hledger/hledger.cabal index fbeabb428..25f51dc21 100644 --- a/hledger/hledger.cabal +++ b/hledger/hledger.cabal @@ -35,9 +35,10 @@ source-repository head location: http://joyful.com/repos/hledger library - -- should set patchlevel here as in Makefile + -- XXX should set patchlevel here as in Makefile cpp-options: -DPATCHLEVEL=0 ghc-options: -W + -- should be the same as below exposed-modules: Hledger.Cli Hledger.Cli.Main @@ -52,6 +53,7 @@ library Hledger.Cli.Print Hledger.Cli.Register Hledger.Cli.Stats + -- should be the same as below build-depends: hledger-lib == 0.14.98 ,HUnit @@ -72,12 +74,35 @@ library ,utf8-string >= 0.3.5 && < 0.4 ,haskeline == 0.6.* +-- should reuse the library above to avoid double compilation, but +-- this is still too complicated as of 2011/6/1. Notes: +-- - interferes with haddock generation, reportedly +-- - 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 +-- - leksah is the package reported to have this working +-- (http://hackage.haskell.org/packages/archive/leksah/0.10.0.4/leksah.cabal) executable hledger main-is: hledger.hs - -- XXX set patchlevel here as in Makefile + -- should be the same as above + other-modules: + Hledger.Cli + Hledger.Cli.Main + Hledger.Cli.Options + Hledger.Cli.Tests + Hledger.Cli.Utils + Hledger.Cli.Version + Hledger.Cli.Add + Hledger.Cli.Balance + Hledger.Cli.Convert + Hledger.Cli.Histogram + Hledger.Cli.Print + Hledger.Cli.Register + Hledger.Cli.Stats + -- XXX should set patchlevel here as in Makefile cpp-options: -DPATCHLEVEL=0 ghc-options: -threaded -W - -- must be the same as above, for some reason + -- should be the same as above build-depends: base >= 3 && < 5 ,hledger == 0.14.98 @@ -99,4 +124,3 @@ executable hledger ,time ,utf8-string >= 0.3.5 && < 0.4 ,haskeline == 0.6.* -