summaryrefslogtreecommitdiff
path: root/bindisttest
diff options
context:
space:
mode:
Diffstat (limited to 'bindisttest')
-rw-r--r--bindisttest/HelloWorld.lhs (renamed from bindisttest/HelloWorld.hs)3
-rw-r--r--bindisttest/Makefile2
2 files changed, 5 insertions, 0 deletions
diff --git a/bindisttest/HelloWorld.hs b/bindisttest/HelloWorld.lhs
index 56e1e89994..94f7defd57 100644
--- a/bindisttest/HelloWorld.hs
+++ b/bindisttest/HelloWorld.lhs
@@ -1,5 +1,8 @@
+\begin{code}
module Main (main) where
main :: IO ()
main = putStr "Hello world!"
+\end{code}
+
diff --git a/bindisttest/Makefile b/bindisttest/Makefile
index aa36a2cbbb..71cb578ef1 100644
--- a/bindisttest/Makefile
+++ b/bindisttest/Makefile
@@ -33,6 +33,8 @@ else
cd a/b/c/$(BIN_DIST_NAME) && ./configure --prefix=$(BIN_DIST_INST_DIR)
cd a/b/c/$(BIN_DIST_NAME) && make install
endif
+ $(BIN_DIST_INST_DIR)/bin/runghc HelloWorld > output
+ $(CONTEXT_DIFF) output expected_output
$(BIN_DIST_INST_DIR)/bin/ghc --make HelloWorld
./HelloWorld > output
$(CONTEXT_DIFF) output expected_output