diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-04-15 10:27:19 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-04-15 10:27:19 +0200 |
commit | cd6c6d60a83fcd081097705ec5f51243d3d701d9 (patch) | |
tree | 8eb941e9ffaf336058b37fa18e6079f61578dffa /guix/build-system | |
parent | 1590e8a1dda793a16d9c70a666b0a8b5d41a94f5 (diff) | |
download | gnu-guix-cd6c6d60a83fcd081097705ec5f51243d3d701d9.tar gnu-guix-cd6c6d60a83fcd081097705ec5f51243d3d701d9.tar.gz |
build-system/haskell: Refer to %GNU-BUILD-SYSTEM-MODULES.
Fixes a regression whereby haskell-build-system was using an incomplete
module list.
* guix/build-system/haskell.scm (%haskell-build-system-modules): New
variable.
(haskell-build): Use it as the default value of #:imported-modules.
Diffstat (limited to 'guix/build-system')
-rw-r--r-- | guix/build-system/haskell.scm | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/guix/build-system/haskell.scm b/guix/build-system/haskell.scm index 79faa5a09e..0fbf0b8e75 100644 --- a/guix/build-system/haskell.scm +++ b/guix/build-system/haskell.scm @@ -25,7 +25,8 @@ #:use-module (guix build-system gnu) #:use-module (ice-9 match) #:use-module (srfi srfi-26) - #:export (haskell-build + #:export (%haskell-build-system-modules + haskell-build haskell-build-system)) ;; Commentary: @@ -35,6 +36,11 @@ ;; ;; Code: +(define %haskell-build-system-modules + ;; Build-side modules imported by default. + `((guix build haskell-build-system) + ,@%gnu-build-system-modules)) + (define (default-haskell) "Return the default Haskell package." ;; Lazily resolve the binding to avoid a circular dependency. @@ -80,9 +86,7 @@ (search-paths '()) (system (%current-system)) (guile #f) - (imported-modules '((guix build haskell-build-system) - (guix build gnu-build-system) - (guix build utils))) + (imported-modules %haskell-build-system-modules) (modules '((guix build haskell-build-system) (guix build utils)))) "Build SOURCE using HASKELL, and with INPUTS. This assumes that SOURCE |