Re: [PATCH 00/11] Series of patches to support ghcjs packages

2015-03-27 Thread David Fox
These changes are available at https://github.com/seereason/haskell-devscripts. On Fri, Mar 27, 2015 at 8:41 AM, David Fox wrote: > These eleven patches start with some bug fixes, followed by some > fairly major changes to parameterize the haskell compiler name, > finally adding support for ghcj

Re: [PATCH 00/11] Series of patches to support ghcjs packages

2015-03-27 Thread David Fox
Ugh, I think maybe gmail's line wrapping broke these patches. On Fri, Mar 27, 2015 at 8:46 AM, David Fox wrote: > I should have mentioned that these patches are for the haskell-devscripts > package. Also, I've been using them for over a year, the 150 builds I > mention are just for this version

Re: [PATCH 00/11] Series of patches to support ghcjs packages

2015-03-27 Thread David Fox
I should have mentioned that these patches are for the haskell-devscripts package. Also, I've been using them for over a year, the 150 builds I mention are just for this version 0.9 compatibility update. On Fri, Mar 27, 2015 at 8:41 AM, David Fox wrote: > These eleven patches start with some bu

[PATCH 09/11] Add support for building ghcjs packages

2015-03-27 Thread David Fox
--- Dh_Haskell.sh | 22 +- hlibrary.mk | 21 + 2 files changed, 38 insertions(+), 5 deletions(-) diff --git a/Dh_Haskell.sh b/Dh_Haskell.sh index 1e1fce6..7cc690a 100644 --- a/Dh_Haskell.sh +++ b/Dh_Haskell.sh @@ -6,6 +6,14 @@ os(){ ghc -e 'putStr Syst

[PATCH 11/11] Debugging code (disabled)

2015-03-27 Thread David Fox
Optional - its nice to have this so you can uncomment and see what haskell-devscripts is actually doing. --- Dh_Haskell.sh| 20 dh_haskell_blurbs| 3 +++ dh_haskell_depends | 3 +++ dh_haskell_extra_depends | 3 +++ dh_haskell_provides | 3 ++

[PATCH 10/11] Add a compiler parameter to the dh_haskell_blurbs script

2015-03-27 Thread David Fox
The call to packages_hc won't work without this change. --- dh_haskell_blurbs | 5 - hlibrary.mk | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dh_haskell_blurbs b/dh_haskell_blurbs index 6d6d3a2..be191bb 100644 --- a/dh_haskell_blurbs +++ b/dh_haskell_blurbs @@ -

[PATCH 08/11] Parameterize the compiler name

2015-03-27 Thread David Fox
--- Dh_Haskell.sh| 182 +++ dh_haskell_blurbs| 18 +++-- dh_haskell_depends | 25 --- dh_haskell_extra_depends | 5 +- dh_haskell_provides | 21 +++--- dh_haskell_shlibdeps | 10 +-- hlibrary.mk |

[PATCH 07/11] Turn the Make rules into shell functions

2015-03-27 Thread David Fox
--- Dh_Haskell.sh | 137 ++ hlibrary.mk | 79 +++-- 2 files changed, 152 insertions(+), 64 deletions(-) diff --git a/Dh_Haskell.sh b/Dh_Haskell.sh index f0a2002..4e56b64 100644 --- a/Dh_Haskell.sh +++ b/Dh_Hask

[PATCH 05/11] Reword some error messages and indicate where they originate

2015-03-27 Thread David Fox
--- dh_haskell_depends | 2 +- dh_haskell_provides | 2 +- dh_haskell_shlibdeps | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dh_haskell_depends b/dh_haskell_depends index 4917092..f23271b 100644 --- a/dh_haskell_depends +++ b/dh_haskell_depends @@ -68,7 +68,7 @@ for pk

[PATCH 06/11] Add functions to Dh_Haskell.hs

2015-03-27 Thread David Fox
These functions are used by the forthcoming bash translations of the make rules. --- Dh_Haskell.sh | 70 +++ 1 file changed, 70 insertions(+) diff --git a/Dh_Haskell.sh b/Dh_Haskell.sh index c5b15b2..f0a2002 100644 --- a/Dh_Haskell.sh +++ b/

[PATCH 04/11] Pass --with-haddock and --with-ghc to haddock, --package-db to cabal configure

2015-03-27 Thread David Fox
Here we pass the values appropriate for ghc, later these get parameterized. --- hlibrary.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hlibrary.mk b/hlibrary.mk index 20e831a..1e16de9 100644 --- a/hlibrary.mk +++ b/hlibrary.mk @@ -113,7 +113,7 @@ $(DEB_SETUP_BIN_NAME):

[PATCH 03/11] Remove support for obsolete doc package prefix 'haskell-'

2015-03-27 Thread David Fox
Keeping these would make the subsequent changes uglier. --- dh_haskell_depends | 2 +- hlibrary.mk| 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dh_haskell_depends b/dh_haskell_depends index b71cec4..4917092 100644 --- a/dh_haskell_depends +++ b/dh_haskell_depend

[PATCH 02/11] Fix a bash error - single quote prevents expansion of shell variables

2015-03-27 Thread David Fox
--- hlibrary.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hlibrary.mk b/hlibrary.mk index fb91ca5..5408863 100644 --- a/hlibrary.mk +++ b/hlibrary.mk @@ -175,7 +175,7 @@ install/libghc-$(CABAL_PACKAGE)-dev:: debian/tmp-inst-ghc debian/extra-depends $(if $(HASKELL_HIDE_P

[PATCH 00/11] Series of patches to support ghcjs packages

2015-03-27 Thread David Fox
These eleven patches start with some bug fixes, followed by some fairly major changes to parameterize the haskell compiler name, finally adding support for ghcjs specifically. A lot of the changes are due to translating make rules to bash code, moving them from hlibrary.mk to Dh_Haskell.sh, leavin

[PATCH 01/11] Allow building of documentation when when package has no Haskell modules

2015-03-27 Thread David Fox
At times there have been cabal packages with no modules whose build would fail without this patch - the earliest version of transformers-compat for example. --- hlibrary.mk | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hlibrary.mk b/hlibrary.mk index b7f046b..fb91ca5