Commit 9e7c0144 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Don't hide what the Makefile is doing in prog006

parent 75bfde16
......@@ -16,12 +16,12 @@ include $(TOP)/mk/
# using the supplied Cabal configuration.
@$(TEST_HC) --make -package-name test-1.0 B.C -no-recomp -v0
@sed "s@__IMPORT__@`pwd`@" < >pkg.conf
@$(TEST_HC) -c -package-conf pkg.conf -package test -no-recomp A.hs -i
$(TEST_HC) --make -package-name test-1.0 B.C -no-recomp -v0
sed "s@__IMPORT__@`pwd`@" < >pkg.conf
$(TEST_HC) -c -package-conf pkg.conf -package test -no-recomp A.hs -i
# The -i clears the search path, so A.hs will find B.C from package test
-@$(TEST_HC) -c -package-conf pkg.conf -package test -no-recomp Main.hs
-$(TEST_HC) -c -package-conf pkg.conf -package test -no-recomp Main.hs
# No -i when compiling Main, so a from-scratch search would find a home-pkg module B.C
# However, A.hi remembers that B.C came from package test, so all is ok.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment