diff --git a/hlibrary.mk b/hlibrary.mk
index 38682a24e83cf91eef0ad1b1111545563efe422a..c42d341da73c9ae0cd8b91971a6560361db29f17 100644
--- a/hlibrary.mk
+++ b/hlibrary.mk
@@ -151,7 +151,7 @@ $(DEB_SETUP_BIN_NAME):
 
 build-ghc-stamp: $(DEB_SETUP_BIN_NAME)
 	perl -d:Confess -MDebian::Debhelper::Buildsystem::Haskell::Recipes=/.*/ \
-		-E 'configure_recipe; build_recipe; haddock_recipe; check_recipe'
+		-E 'configure_recipe; haddock_recipe; build_recipe; check_recipe'
 	touch $@
 
 build/%-dev build/%-prof build/%-doc:: build-ghc-stamp